Condividi tramite


AuthenticationService Classe

Definizione

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
Ereditarietà
AuthenticationService
Implementazioni

Costruttori

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Costruttore.

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

Costruttore.

Proprietà

Handlers

Usato per risolvere le istanze di IAuthenticationHandler.

Options

Oggetto AuthenticationOptions.

Schemes

Usato per cercare AuthenticationSchemes.

Transform

Usato per la trasformazione delle attestazioni.

Metodi

AuthenticateAsync(HttpContext, String)

Eseguire l'autenticazione per lo schema di autenticazione specificato.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Sfidare lo schema di autenticazione specificato.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Impedisci lo schema di autenticazione specificato.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Firmare un'entità di sicurezza per lo schema di autenticazione specificato.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Disconnettere lo schema di autenticazione specificato.

Metodi di estensione

GetTokenAsync(IAuthenticationService, HttpContext, String)

Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token.

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token.

Si applica a