AuthenticationService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements 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
- Inheritance
-
AuthenticationService
- Implements
Constructors
Properties
Handlers |
Used to resolve IAuthenticationHandler instances. |
Options | |
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. |