AuthenticationService Třída

Definice

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
Dědičnost
AuthenticationService
Implementuje

Konstruktory

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Konstruktor

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

Konstruktor

Vlastnosti

Handlers

Používá se k překladu instancí IAuthenticationHandler.

Options

Hodnota AuthenticationOptions

Schemes

Používá se k vyhledávání AuthenticationSchemes.

Transform

Používá se pro transformaci deklarací identity.

Metody

AuthenticateAsync(HttpContext, String)

Ověřte se pro zadané schéma ověřování.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Zpochybní zadané schéma ověřování.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Zakažte zadané schéma ověřování.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Přihlaste se k zadanému schématu ověřování instanční objekt.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Odhlaste se ze zadaného schématu ověřování.

Metody rozšíření

GetTokenAsync(IAuthenticationService, HttpContext, String)

Ověří požadavek pomocí zadaného schématu ověřování a vrátí hodnotu tokenu.

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Ověří požadavek pomocí zadaného schématu ověřování a vrátí hodnotu tokenu.

Platí pro