ICookieAuthenticationEvents.ValidatePrincipal Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.TaskPublic Function ValidatePrincipal (context As CookieValidatePrincipalContext) As TaskParameters
- context
- CookieValidatePrincipalContext
Contains information about the login session as well as the user ClaimsIdentity.
Returns
A Task representing the completed operation.