AuthenticationHttpContextExtensions.AuthenticateAsync Méthode

Définition

Surcharges

AuthenticateAsync(HttpContext)

Authentifiez la requête actuelle à l’aide du schéma d’authentification par défaut. Le schéma d’authentification par défaut peut être configuré à l’aide de DefaultAuthenticateScheme.

AuthenticateAsync(HttpContext, String)

Authentifiez la requête actuelle à l’aide du schéma spécifié.

AuthenticateAsync(HttpContext)

Authentifiez la requête actuelle à l’aide du schéma d’authentification par défaut. Le schéma d’authentification par défaut peut être configuré à l’aide de DefaultAuthenticateScheme.

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)

Paramètres

context
HttpContext

Contexte HttpContext .

Retours

L’AuthenticateResultopérateur

S’applique à

AuthenticateAsync(HttpContext, String)

Authentifiez la requête actuelle à l’aide du schéma spécifié.

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)

Paramètres

context
HttpContext

Contexte HttpContext .

scheme
String

Nom du schéma d’authentification.

Retours

L’AuthenticateResultopérateur

S’applique à