Class ApplicationCookieAuthenticationOptions
- Namespace
- ProjectTemplate.Web.Authentication.Options
- Assembly
- ProjectTemplate.Web.dll
Represents cookie authentication configuration.
public sealed class ApplicationCookieAuthenticationOptions
- Inheritance
-
ApplicationCookieAuthenticationOptions
- Inherited Members
Properties
AccessDeniedPath
Gets or sets the access denied path used when an authenticated user lacks permission.
public string AccessDeniedPath { get; set; }
Property Value
AllowInsecureHttp
Gets or sets a value indicating whether local Development environments may issue the authentication cookie for plain HTTP requests.
public bool AllowInsecureHttp { get; set; }
Property Value
Remarks
The default is false. This override is rejected outside the Development environment.
Enabled
Gets or sets a value indicating whether cookie authentication is enabled.
public bool Enabled { get; set; }
Property Value
ExpireMinutes
Gets or sets the cookie expiration time in minutes.
public int ExpireMinutes { get; set; }
Property Value
LoginPath
Gets or sets the login path used when an unauthenticated request requires authentication.
public string LoginPath { get; set; }
Property Value
LogoutPath
Gets or sets the logout path used by the application.
public string LogoutPath { get; set; }
Property Value
Scheme
Gets or sets the cookie authentication scheme name.
public string Scheme { get; set; }
Property Value
SlidingExpiration
Gets or sets a value indicating whether the cookie expiration should be renewed during active use.
public bool SlidingExpiration { get; set; }