AuthenticationService Classe

Définition

Implémente 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
Héritage
AuthenticationService
Implémente

Constructeurs

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Constructeur.

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

Constructeur.

Propriétés

Handlers

Utilisé pour résoudre les instances IAuthenticationHandler.

Options

L’AuthenticationOptionsopérateur

Schemes

Utilisé pour rechercher AuthenticationSchemes.

Transform

Utilisé pour la transformation des revendications.

Méthodes

AuthenticateAsync(HttpContext, String)

Authentifiez-vous pour le schéma d’authentification spécifié.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Défiez le schéma d’authentification spécifié.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Interdire le schéma d’authentification spécifié.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Connectez un principal pour le schéma d’authentification spécifié.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Déconnectez le schéma d’authentification spécifié.

Méthodes d’extension

GetTokenAsync(IAuthenticationService, HttpContext, String)

Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton.

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton.

S’applique à