AuthenticationService Klasa

Definicja

Implementuje IAuthenticationService.

public ref class AuthenticationService : Microsoft::AspNetCore::Authentication::IAuthenticationService
public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthenticationService
type AuthenticationService = class
    interface IAuthenticationService
Public Class AuthenticationService
Implements IAuthenticationService
Dziedziczenie
AuthenticationService
Implementuje

Konstruktory

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Konstruktor.

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation, IOptions<AuthenticationOptions>)

Konstruktor.

Właściwości

Handlers

Służy do rozpoznawania wystąpień programu IAuthenticationHandler.

Options

Element AuthenticationOptions.

Schemes

Służy do wyszukiwania AuthenticationSchemes.

Transform

Służy do przekształcania oświadczeń.

Metody

AuthenticateAsync(HttpContext, String)

Uwierzytelnianie dla określonego schematu uwierzytelniania.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Zakwestionowanie określonego schematu uwierzytelniania.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Zabronić określonego schematu uwierzytelniania.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Zaloguj się podmiot zabezpieczeń dla określonego schematu uwierzytelniania.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Wyloguj określony schemat uwierzytelniania.

Metody rozszerzania

GetTokenAsync(IAuthenticationService, HttpContext, String)

Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu.

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu.

Dotyczy