Udostępnij za pośrednictwem


IAuthenticationService.AuthenticateAsync(HttpContext, String) Metoda

Definicja

Uwierzytelnianie dla określonego schematu uwierzytelniania.

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

Parametry

context
HttpContext

Element HttpContext.

scheme
String

Nazwa schematu uwierzytelniania.

Zwraca

Wynik.

Dotyczy