AuthenticationManager.AuthenticateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AuthenticateAsync(AuthenticateContext) | |
AuthenticateAsync(String) |
AuthenticateAsync(AuthenticateContext)
public:
abstract System::Threading::Tasks::Task ^ AuthenticateAsync(Microsoft::AspNetCore::Http::Features::Authentication::AuthenticateContext ^ context);
public abstract 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
Public MustOverride Function AuthenticateAsync (context As AuthenticateContext) As Task
參數
- context
- AuthenticateContext
傳回
適用於
AuthenticateAsync(String)
public:
virtual System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^ AuthenticateAsync(System::String ^ authenticationScheme);
public virtual System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> AuthenticateAsync (string authenticationScheme);
abstract member AuthenticateAsync : string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
override this.AuthenticateAsync : string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
Public Overridable Function AuthenticateAsync (authenticationScheme As String) As Task(Of ClaimsPrincipal)
參數
- authenticationScheme
- String