AuthenticationHttpContextExtensions.AuthenticateAsync Methode

Definition

Überlädt

AuthenticateAsync(HttpContext)

Authentifizieren Sie die aktuelle Anforderung mithilfe des Standardauthentifizierungsschemas. Das Standardauthentifizierungsschema kann mit DefaultAuthenticateSchemekonfiguriert werden.

AuthenticateAsync(HttpContext, String)

Authentifizieren Sie die aktuelle Anforderung mithilfe des angegebenen Schemas.

AuthenticateAsync(HttpContext)

Authentifizieren Sie die aktuelle Anforderung mithilfe des Standardauthentifizierungsschemas. Das Standardauthentifizierungsschema kann mit DefaultAuthenticateSchemekonfiguriert werden.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ AuthenticateAsync(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (this Microsoft.AspNetCore.Http.HttpContext context);
static member AuthenticateAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
<Extension()>
Public Function AuthenticateAsync (context As HttpContext) As Task(Of AuthenticateResult)

Parameter

context
HttpContext

Der HttpContext Kontext.

Gibt zurück

Die AuthenticateResult.

Gilt für:

AuthenticateAsync(HttpContext, String)

Authentifizieren Sie die aktuelle Anforderung mithilfe des angegebenen Schemas.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ AuthenticateAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme);
static member AuthenticateAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
<Extension()>
Public Function AuthenticateAsync (context As HttpContext, scheme As String) As Task(Of AuthenticateResult)

Parameter

context
HttpContext

Der HttpContext Kontext.

scheme
String

Der Name des Authentifizierungsschemas.

Gibt zurück

Die AuthenticateResult.

Gilt für: