ICookieAuthenticationEvents Interface

Definition

Specifies callback methods which the CookieAuthenticationMiddleware invokes to enable developer control over the authentication process. />

public interface class ICookieAuthenticationEvents
public interface ICookieAuthenticationEvents
type ICookieAuthenticationEvents = interface
Public Interface ICookieAuthenticationEvents
Derived

Methods

RedirectToAccessDenied(CookieRedirectContext)

Called when an access denied causes a redirect in the cookie middleware.

RedirectToLogin(CookieRedirectContext)

Called when a SignIn causes a redirect in the cookie middleware.

RedirectToLogout(CookieRedirectContext)

Called when a SignOut causes a redirect in the cookie middleware.

RedirectToReturnUrl(CookieRedirectContext)

Called when redirecting back to the return url in the cookie middleware.

SignedIn(CookieSignedInContext)

Called when an endpoint has provided sign in information after it is converted into a cookie.

SigningIn(CookieSigningInContext)

Called when an endpoint has provided sign in information before it is converted into a cookie. By implementing this method the claims and extra information that go into the ticket may be altered.

SigningOut(CookieSigningOutContext)

Called during the sign-out flow to augment the cookie cleanup process.

ValidatePrincipal(CookieValidatePrincipalContext)

Called each time a request principal has been validated by the middleware. By implementing this method the application may alter or reject the principal which has arrived with the request.

Applies to