Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Authentication.​Cookies.​CookieValidatePrincipalContext

Assembly: Microsoft.AspNetCore.Authentication.Cookies

Inheritance: object → BaseContext<​CookieAuthenticationOptions> → PropertiesContext<​CookieAuthenticationOptions> → PrincipalContext<​CookieAuthenticationOptions> → CookieValidatePrincipalContext

Context object passed to the CookieAuthenticationEvents ValidatePrincipal method.

Properties

public bool
ShouldRenew
If true, the cookie will be renewed
Properties
Scheme
HttpContext
Request
Response

Methods

public void
ReplacePrincipal​(System.​Security.​Claims.​ClaimsPrincipal principal)
Called to replace the claims principal. The supplied principal will replace the value of the Principal property, which determines the identity of the authenticated request.
principal The <see cref="T:System.Security.Claims.ClaimsPrincipal" /> used as the replacement
public void
RejectPrincipal​()
Called to reject the incoming principal. This may be done if the application has determined the account is no longer active, and the request should be treated as if it was anonymous.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object