AuthenticationService AuthenticationService AuthenticationService Class

Definition

public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthenticationService
type AuthenticationService = class
    interface IAuthenticationService
Public Class AuthenticationService
Implements IAuthenticationService
Inheritance
AuthenticationServiceAuthenticationServiceAuthenticationService
Implements

Constructors

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation) AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation) AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

Constructor.

Properties

Handlers Handlers Handlers

Used to resolve IAuthenticationHandler instances.

Schemes Schemes Schemes

Used to lookup AuthenticationSchemes.

Transform Transform Transform

Used for claims transformation.

Methods

AuthenticateAsync(HttpContext, String) AuthenticateAsync(HttpContext, String) AuthenticateAsync(HttpContext, String)

Authenticate for the specified authentication scheme.

ChallengeAsync(HttpContext, String, AuthenticationProperties) ChallengeAsync(HttpContext, String, AuthenticationProperties) ChallengeAsync(HttpContext, String, AuthenticationProperties)

Challenge the specified authentication scheme.

ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties)

Forbid the specified authentication scheme.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Sign a principal in for the specified authentication scheme.

SignOutAsync(HttpContext, String, AuthenticationProperties) SignOutAsync(HttpContext, String, AuthenticationProperties) SignOutAsync(HttpContext, String, AuthenticationProperties)

Sign out the specified authentication scheme.

Extension Methods

GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String)

Extension method for getting the value of an authentication token.

GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Extension method for getting the value of an authentication token.

Applies to