AuthenticationManager Class

Namespace
Microsoft.AspNetCore.Http.Authentication
Assemblies
  • Microsoft.AspNetCore.Http.Abstractions

Syntax

public abstract class AuthenticationManager
class Microsoft.AspNetCore.Http.Authentication.AuthenticationManager

Methods

AuthenticateAsync(Microsoft.AspNetCore.Http.Features.Authentication.AuthenticateContext)
Return type:System.Threading.Tasks.Task
public abstract Task AuthenticateAsync(AuthenticateContext context)
AuthenticateAsync(System.String)
Return type:System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
public virtual Task<ClaimsPrincipal> AuthenticateAsync(string authenticationScheme)
ChallengeAsync()
Return type:System.Threading.Tasks.Task
public virtual Task ChallengeAsync()
ChallengeAsync(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)
Return type:System.Threading.Tasks.Task
public virtual Task ChallengeAsync(AuthenticationProperties properties)
ChallengeAsync(System.String)
Return type:System.Threading.Tasks.Task
public virtual Task ChallengeAsync(string authenticationScheme)
ChallengeAsync(System.String, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)
Return type:System.Threading.Tasks.Task
public virtual Task ChallengeAsync(string authenticationScheme, AuthenticationProperties properties)
ChallengeAsync(System.String, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties, Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior)
Return type:System.Threading.Tasks.Task
public abstract Task ChallengeAsync(string authenticationScheme, AuthenticationProperties properties, ChallengeBehavior behavior)
ForbidAsync()

Creates a challenge for the authentication manager with Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior.Forbidden.

Return type:System.Threading.Tasks.Task
Returns:A System.Threading.Tasks.Task that represents the asynchronous challenge operation.
public virtual Task ForbidAsync()
ForbidAsync(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)

Creates a challenge for the authentication manager with Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior.Forbidden.

Arguments:properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) – Additional arbitrary values which may be used by particular authentication types.
Return type:System.Threading.Tasks.Task
Returns:A System.Threading.Tasks.Task that represents the asynchronous challenge operation.
public virtual Task ForbidAsync(AuthenticationProperties properties)
ForbidAsync(System.String)
Return type:System.Threading.Tasks.Task
public virtual Task ForbidAsync(string authenticationScheme)
ForbidAsync(System.String, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)
Return type:System.Threading.Tasks.Task
public virtual Task ForbidAsync(string authenticationScheme, AuthenticationProperties properties)
GetAuthenticateInfoAsync(System.String)
Return type:System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.Authentication.AuthenticateInfo>
public abstract Task<AuthenticateInfo> GetAuthenticateInfoAsync(string authenticationScheme)
GetAuthenticationSchemes()
Return type:System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Http.Authentication.AuthenticationDescription>
public abstract IEnumerable<AuthenticationDescription> GetAuthenticationSchemes()
SignInAsync(System.String, System.Security.Claims.ClaimsPrincipal)
Return type:System.Threading.Tasks.Task
public virtual Task SignInAsync(string authenticationScheme, ClaimsPrincipal principal)
SignInAsync(System.String, System.Security.Claims.ClaimsPrincipal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)
Return type:System.Threading.Tasks.Task
public abstract Task SignInAsync(string authenticationScheme, ClaimsPrincipal principal, AuthenticationProperties properties)
SignOutAsync(System.String)
Return type:System.Threading.Tasks.Task
public virtual Task SignOutAsync(string authenticationScheme)
SignOutAsync(System.String, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)
Return type:System.Threading.Tasks.Task
public abstract Task SignOutAsync(string authenticationScheme, AuthenticationProperties properties)

Fields

AutomaticScheme()

Constant used to represent the automatic scheme

Return type:System.String
public const string AutomaticScheme = "Automatic"

Properties

Microsoft.AspNetCore.Http.Authentication.AuthenticationManager.HttpContext
Return type:Microsoft.AspNetCore.Http.HttpContext
public abstract HttpContext HttpContext { get; }