IPolicyEvaluator.AuthenticateAsync(AuthorizationPolicy, HttpContext) Método

Definição

A autenticação para AuthenticationSchemes e define o resultante ClaimsPrincipal como User. Se nenhum esquema for definido, este será um não-op.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ AuthenticateAsync(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy, Microsoft::AspNetCore::Http::HttpContext ^ context);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Http.HttpContext context);
abstract member AuthenticateAsync : Microsoft.AspNetCore.Authorization.AuthorizationPolicy * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
Public Function AuthenticateAsync (policy As AuthorizationPolicy, context As HttpContext) As Task(Of AuthenticateResult)

Parâmetros

Retornos

Success(AuthenticationTicket) a menos que todos os esquemas especificados por AuthenticationSchemes não se autentiquem.

Aplica-se a