AuthenticationHttpContextExtensions.AuthenticateAsync Metodo

Definizione

Overload

AuthenticateAsync(HttpContext)

Autenticare la richiesta corrente usando lo schema di autenticazione predefinito. Lo schema di autenticazione predefinito può essere configurato usando DefaultAuthenticateScheme.

AuthenticateAsync(HttpContext, String)

Autenticare la richiesta corrente usando lo schema specificato.

AuthenticateAsync(HttpContext)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Autenticare la richiesta corrente usando lo schema di autenticazione predefinito. Lo schema di autenticazione predefinito può essere configurato usando 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)

Parametri

context
HttpContext

Contesto HttpContext .

Restituisce

Oggetto AuthenticateResult.

Si applica a

AuthenticateAsync(HttpContext, String)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Autenticare la richiesta corrente usando lo schema specificato.

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)

Parametri

context
HttpContext

Contesto HttpContext .

scheme
String

Nome dello schema di autenticazione.

Restituisce

Oggetto AuthenticateResult.

Si applica a