AuthenticationService.AuthenticateAsync(HttpContext, String) Method

Definition

Authenticate for the specified authentication scheme.

C#
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (Microsoft.AspNetCore.Http.HttpContext context, string scheme);
C#
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync (Microsoft.AspNetCore.Http.HttpContext context, string? scheme);

Parameters

context
HttpContext

The HttpContext.

scheme
String

The name of the authentication scheme.

Returns

The result.

Implements

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0