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
public
System.​Func<​CookieValidatePrincipalContext, System.​Threading.​Tasks.​Task>
OnValidatePrincipal
Invoked to validate the principal.
public
System.​Func<​CookieSlidingExpirationContext, System.​Threading.​Tasks.​Task>
OnCheckSlidingExpiration
Invoked to check if the cookie should be renewed.
public
System.​Func<​CookieSigningInContext, System.​Threading.​Tasks.​Task>
OnSigningIn
Invoked on signing in.
public
System.​Func<​CookieSignedInContext, System.​Threading.​Tasks.​Task>
OnSignedIn
Invoked after sign in has completed.
public
System.​Func<​CookieSigningOutContext, System.​Threading.​Tasks.​Task>
OnSigningOut
Invoked on signing out.
public
System.​Func<​RedirectContext<​CookieAuthenticationOptions>, System.​Threading.​Tasks.​Task>
OnRedirectToLogin
Invoked when the client needs to be redirected to the sign in url.
public
System.​Func<​RedirectContext<​CookieAuthenticationOptions>, System.​Threading.​Tasks.​Task>
OnRedirectToAccessDenied
Invoked when the client needs to be redirected to the access denied url.
public
System.​Func<​RedirectContext<​CookieAuthenticationOptions>, System.​Threading.​Tasks.​Task>
OnRedirectToLogout
Invoked when the client is to be redirected to logout.
public
System.​Func<​RedirectContext<​CookieAuthenticationOptions>, System.​Threading.​Tasks.​Task>
OnRedirectToReturnUrl
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" /> .
context
The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext" /> .
context
The <see cref="T:Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext" /> .
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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object