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.​CookieAuthenticationEvents

Assembly: Microsoft.AspNetCore.Authentication.Cookies

Inheritance: object → CookieAuthenticationEvents

Allows subscribing to events raised during cookie authentication.

Properties

Invoked to validate the principal.
Invoked to check if the cookie should be renewed.
Invoked on signing in.
Invoked after sign in has completed.
Invoked on signing out.
Invoked when the client needs to be redirected to the sign in url.
Invoked when the client needs to be redirected to the access denied url.
Invoked when the client is to be redirected to logout.
Invoked when the client is to be redirected after logout.

Methods

ValidatePrincipal​(CookieValidatePrincipalContext context)
Invoked to validate the principal.
context The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext" /> .
CheckSlidingExpiration​(CookieSlidingExpirationContext context)
Invoked to check if the cookie should be renewed.
context The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSlidingExpirationContext" /> .
SigningIn​(CookieSigningInContext context)
Invoked during sign in.
context The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext" /> .
SignedIn​(CookieSignedInContext context)
Invoked after sign in has completed.
context The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext" /> .
SigningOut​(CookieSigningOutContext context)
Invoked on sign out.
context The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSigningOutContext" /> .
RedirectToLogout​(RedirectContext<​CookieAuthenticationOptions> context)
Invoked when the client is being redirected to the log out url.
context The <see cref="T:Microsoft.AspNetCore.Authentication.RedirectContext`1" /> .
RedirectToLogin​(RedirectContext<​CookieAuthenticationOptions> context)
Invoked when the client is being redirected to the log in url.
context The <see cref="T:Microsoft.AspNetCore.Authentication.RedirectContext`1" /> .
RedirectToReturnUrl​(RedirectContext<​CookieAuthenticationOptions> context)
Invoked when the client is being redirected after log out.
context The <see cref="T:Microsoft.AspNetCore.Authentication.RedirectContext`1" /> .
RedirectToAccessDenied​(RedirectContext<​CookieAuthenticationOptions> context)
Invoked when the client is being redirected to the access denied url.
context The <see cref="T:Microsoft.AspNetCore.Authentication.RedirectContext`1" /> .
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