Dela via


AuthenticationOptions Class

Definition

Options to configure authentication.

public ref class AuthenticationOptions
public class AuthenticationOptions
type AuthenticationOptions = class
Public Class AuthenticationOptions
Inheritance
AuthenticationOptions

Constructors

AuthenticationOptions()

Properties

DefaultAuthenticateScheme

Used as the default scheme by AuthenticateAsync(HttpContext, String).

DefaultChallengeScheme

Used as the default scheme by ChallengeAsync(HttpContext, String, AuthenticationProperties).

DefaultForbidScheme

Used as the default scheme by ForbidAsync(HttpContext, String, AuthenticationProperties).

DefaultScheme

Used as the fallback default scheme for all the other defaults.

DefaultSignInScheme

Used as the default scheme by SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties).

DefaultSignOutScheme

Used as the default scheme by SignOutAsync(HttpContext, String, AuthenticationProperties).

RequireAuthenticatedSignIn

If true, SignIn should throw if attempted with a user is not authenticated. A user is considered authenticated if IsAuthenticated returns true for the ClaimsPrincipal associated with the HTTP request.

SchemeMap

Maps schemes by name.

Schemes

Returns the schemes in the order they were added (important for request handling priority)

Methods

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Adds an AuthenticationScheme.

AddScheme<THandler>(String, String)

Adds an AuthenticationScheme.

Applies to