Compartir a través de


AuthenticationHttpContextExtensions.AuthenticateAsync Método

Definición

Sobrecargas

AuthenticateAsync(HttpContext)

Autentique la solicitud actual mediante el esquema de autenticación predeterminado. El esquema de autenticación predeterminado se puede configurar mediante DefaultAuthenticateScheme.

AuthenticateAsync(HttpContext, String)

Autentique la solicitud actual mediante el esquema especificado.

AuthenticateAsync(HttpContext)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Autentique la solicitud actual mediante el esquema de autenticación predeterminado. El esquema de autenticación predeterminado se puede configurar mediante 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)

Parámetros

context
HttpContext

Contexto HttpContext .

Devoluciones

AuthenticateResult.

Se aplica a

AuthenticateAsync(HttpContext, String)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Autentique la solicitud actual mediante el esquema especificado.

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)

Parámetros

context
HttpContext

Contexto HttpContext .

scheme
String

Nombre del esquema de autenticación.

Devoluciones

AuthenticateResult.

Se aplica a