Share via


ICookieAuthenticationEvents.ValidatePrincipal Method

Definition

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.

public:
 System::Threading::Tasks::Task ^ ValidatePrincipal(Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^ context);
public System.Threading.Tasks.Task ValidatePrincipal (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context);
abstract member ValidatePrincipal : Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext -> System.Threading.Tasks.Task
Public Function ValidatePrincipal (context As CookieValidatePrincipalContext) As Task

Parameters

context
CookieValidatePrincipalContext

Contains information about the login session as well as the user ClaimsIdentity.

Returns

A Task representing the completed operation.

Applies to