AuthenticationHandler<TOptions>.AuthenticateAsync 方法

定义

重载

AuthenticateAsync()

对当前请求进行身份验证。

AuthenticateAsync(AuthenticateContext)

AuthenticateAsync()

Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs

对当前请求进行身份验证。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ AuthenticateAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync ();
abstract member AuthenticateAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
override this.AuthenticateAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
Public Function AuthenticateAsync () As Task(Of AuthenticateResult)

返回

AuthenticateResult 结果。

实现

适用于

AuthenticateAsync(AuthenticateContext)

public:
 virtual System::Threading::Tasks::Task ^ AuthenticateAsync(Microsoft::AspNetCore::Http::Features::Authentication::AuthenticateContext ^ context);
public System.Threading.Tasks.Task AuthenticateAsync (Microsoft.AspNetCore.Http.Features.Authentication.AuthenticateContext context);
abstract member AuthenticateAsync : Microsoft.AspNetCore.Http.Features.Authentication.AuthenticateContext -> System.Threading.Tasks.Task
override this.AuthenticateAsync : Microsoft.AspNetCore.Http.Features.Authentication.AuthenticateContext -> System.Threading.Tasks.Task
Public Function AuthenticateAsync (context As AuthenticateContext) As Task

参数

返回

实现

适用于