Share via


AuthenticationService Classe

Definição

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
Herança
AuthenticationService
Implementações

Construtores

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Construtor.

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

Construtor.

Propriedades

Handlers

Usado para resolve instâncias IAuthenticationHandler.

Options

O AuthenticationOptions.

Schemes

Usado para pesquisar AuthenticationSchemes.

Transform

Usado para transformação de declarações.

Métodos

AuthenticateAsync(HttpContext, String)

Autenticar para o esquema de autenticação especificado.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Desafie o esquema de autenticação especificado.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Proíba o esquema de autenticação especificado.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Entre com uma entidade de segurança para o esquema de autenticação especificado.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Saia do esquema de autenticação especificado.

Métodos de Extensão

GetTokenAsync(IAuthenticationService, HttpContext, String)

Autentica a solicitação usando o esquema de autenticação especificado e retorna o valor do token.

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Autentica a solicitação usando o esquema de autenticação especificado e retorna o valor do token.

Aplica-se a