SecurityStampValidator Class¶
Static helper class used to configure a CookieAuthenticationNotifications to validate a cookie against a user’s security stamp.
- Namespace
Microsoft.AspNetCore.Identity
- Assemblies
- Microsoft.AspNetCore.Identity
Syntax¶
public class SecurityStampValidator
-
class
Microsoft.AspNetCore.Identity.
SecurityStampValidator
Methods¶
-
ValidatePrincipalAsync
(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext)¶ Validates a principal against a user’s stored security stamp. the identity.
Arguments: context (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext) – The context containing the System.Security.Claims.ClaimsPrincipal
andMicrosoft.AspNetCore.Http.Authentication.AuthenticationProperties
to validate.Return type: System.Threading.Tasks.Task Returns: The System.Threading.Tasks.Task
that represents the asynchronous validation operation.public static Task ValidatePrincipalAsync(CookieValidatePrincipalContext context)
-