Język

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

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

Konstruktor.

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Konstruktor.

Właściwości

Nazwa Opis
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

Nazwa Opis
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

Nazwa Opis
GetTokenAsync(IAuthenticationService, HttpContext, String, String)

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

GetTokenAsync(IAuthenticationService, HttpContext, String)

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

Dotyczy