IdentityCookieOptions Class

Represents all the options you can use to configure the cookies middleware uesd by the identity system.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public class IdentityCookieOptions
class Microsoft.AspNetCore.Identity.IdentityCookieOptions

Constructors

IdentityCookieOptions()
public IdentityCookieOptions()

Properties

Microsoft.AspNetCore.Identity.IdentityCookieOptions.ApplicationCookie
Return type:Microsoft.AspNetCore.Builder.CookieAuthenticationOptions
public CookieAuthenticationOptions ApplicationCookie { get; set; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.ApplicationCookieAuthenticationScheme

Gets the scheme used to identify application authentication cookies.

Return type:System.String
Returns:The scheme used to identify application authentication cookies.
public string ApplicationCookieAuthenticationScheme { get; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.ExternalCookie
Return type:Microsoft.AspNetCore.Builder.CookieAuthenticationOptions
public CookieAuthenticationOptions ExternalCookie { get; set; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.ExternalCookieAuthenticationScheme

Gets the scheme used to identify external authentication cookies.

Return type:System.String
Returns:The scheme used to identify external authentication cookies.
public string ExternalCookieAuthenticationScheme { get; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.TwoFactorRememberMeCookie
Return type:Microsoft.AspNetCore.Builder.CookieAuthenticationOptions
public CookieAuthenticationOptions TwoFactorRememberMeCookie { get; set; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.TwoFactorRememberMeCookieAuthenticationScheme

Gets the scheme used to identify Two Factor authentication cookies for saving the Remember Me state.

Return type:System.String
Returns:The scheme used to identify remember me application authentication cookies.
public string TwoFactorRememberMeCookieAuthenticationScheme { get; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.TwoFactorUserIdCookie
Return type:Microsoft.AspNetCore.Builder.CookieAuthenticationOptions
public CookieAuthenticationOptions TwoFactorUserIdCookie { get; set; }
Microsoft.AspNetCore.Identity.IdentityCookieOptions.TwoFactorUserIdCookieAuthenticationScheme

Gets the scheme used to identify Two Factor authentication cookies for round tripping user identities.

Return type:System.String
Returns:The scheme used to identify user identity 2fa authentication cookies.
public string TwoFactorUserIdCookieAuthenticationScheme { get; }