AuthenticationOptions 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.
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 |
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. |