AuthenticationHandler<TOptions>.AuthenticateAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AuthenticateAsync() |
Authenticate the current request. |
AuthenticateAsync(AuthenticateContext) |
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
Authenticate the current request.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ AuthenticateAsync();
C#
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)
Returns
The AuthenticateResult result.
Implements
Applies to
ASP.NET Core 9.0 och andra versioner
Produkt | Versioner |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
public:
virtual System::Threading::Tasks::Task ^ AuthenticateAsync(Microsoft::AspNetCore::Http::Features::Authentication::AuthenticateContext ^ context);
C#
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
Parameters
- context
- AuthenticateContext
Returns
Implements
Applies to
ASP.NET Core 1.1 och ASP.NET Core 1.0
Produkt | Versioner |
---|---|
ASP.NET Core | 1.0, 1.1 |