CookieAuthenticationDefaults Class

Default values related to cookie-based authentication middleware

Namespace
Microsoft.AspNetCore.Authentication.Cookies
Assemblies
  • Microsoft.AspNetCore.Authentication.Cookies

Syntax

public class CookieAuthenticationDefaults
class Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationDefaults

Fields

AccessDeniedPath()

The default value used by CookieAuthenticationMiddleware for the CookieAuthenticationOptions.AccessDeniedPath

Return type:Microsoft.AspNetCore.Http.PathString
public static readonly PathString AccessDeniedPath
AuthenticationScheme()

The default value used for CookieAuthenticationOptions.AuthenticationScheme

Return type:System.String
public const string AuthenticationScheme = "Cookies"
CookiePrefix()

The prefix used to provide a default CookieAuthenticationOptions.CookieName

Return type:System.String
public static readonly string CookiePrefix
LoginPath()

The default value used by CookieAuthenticationMiddleware for the CookieAuthenticationOptions.LoginPath

Return type:Microsoft.AspNetCore.Http.PathString
public static readonly PathString LoginPath
LogoutPath()

The default value used by CookieAuthenticationMiddleware for the CookieAuthenticationOptions.LogoutPath

Return type:Microsoft.AspNetCore.Http.PathString
public static readonly PathString LogoutPath
ReturnUrlParameter()

The default value of the CookieAuthenticationOptions.ReturnUrlParameter

Return type:System.String
public static readonly string ReturnUrlParameter