Dela via


AuthenticationService Class

Definition

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
Inheritance
AuthenticationService
Implements

Constructors

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

Constructor.

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Constructor.

Properties

Handlers

Used to resolve IAuthenticationHandler instances.

Options

The AuthenticationOptions.

Schemes

Used to lookup AuthenticationSchemes.

Transform

Used for claims transformation.

Methods

AuthenticateAsync(HttpContext, String)

Authenticate for the specified authentication scheme.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Challenge the specified authentication scheme.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Forbid the specified authentication scheme.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Sign a principal in for the specified authentication scheme.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Sign out the specified authentication scheme.

Extension Methods

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Authenticates the request using the specified authentication scheme and returns the value for the token.

GetTokenAsync(IAuthenticationService, HttpContext, String)

Authenticates the request using the specified authentication scheme and returns the value for the token.

Applies to