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 řešení potíží s instancemi IAuthenticationHandler.

Options

Hodnota AuthenticationOptions

Schemes

Používá se k vyhledávání ověřováníSchemes.

Transform

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

Metody

AuthenticateAsync(HttpContext, String)

Ověření 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 objektu zabezpečení pro zadané schéma ověřování.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Odhlaste zadané schéma 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