Microsoft.AspNetCore.Authentication.Cookies Namespace
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.
Contains types that support cookie based authentication.
Classes
BaseCookieContext | |
ChunkingCookieManager |
This handles cookies that are limited by per cookie length. It breaks down long cookies for responses, and reassembles them from requests. |
CookieAuthenticationDefaults |
Default values related to cookie-based authentication handler |
CookieAuthenticationEvents |
Allows subscribing to events raised during cookie authentication. |
CookieAuthenticationHandler |
Implementation for the cookie-based authentication handler. |
CookieAuthenticationMiddleware | |
CookieAuthenticationOptions |
Configuration options for CookieAuthenticationOptions. |
CookieRedirectContext |
Context passed when a Challenge, SignIn, or SignOut causes a redirect in the cookie middleware |
CookieSignedInContext |
Context object passed to the ICookieAuthenticationEvents method SignedIn. |
CookieSigningInContext |
Context object passed to the SigningIn(CookieSigningInContext). |
CookieSigningOutContext |
Context object passed to the SigningOut(CookieSigningOutContext) |
CookieSlidingExpirationContext |
Context object passed to the CookieAuthenticationEvents OnCheckSlidingExpiration method. |
CookieValidatePrincipalContext |
Context object passed to the CookieAuthenticationEvents ValidatePrincipal method. |
PostConfigureCookieAuthenticationOptions |
Used to setup defaults for all CookieAuthenticationOptions. |
Interfaces
ICookieAuthenticationEvents |
Specifies callback methods which the CookieAuthenticationMiddleware invokes to enable developer control over the authentication process. /> |
ICookieManager |
This is used by the CookieAuthenticationMiddleware to process request and response cookies. It is abstracted from the normal cookie APIs to allow for complex operations like chunking. |
ITicketStore |
This provides an abstract storage mechanic to preserve identity information on the server while only sending a simple identifier key to the client. This is most commonly used to mitigate issues with serializing large identities into cookies. |
Remarks
For more information about using cookie based authentication, see Use cookie authentication without ASP.NET Core Identity.