ISecurityStampValidator Interface¶
Provides an abstraction for a validating a security stamp of an incoming identity, and regenerating or rejecting the identity based on the validation result.
- Namespace
Microsoft.AspNetCore.Identity
- Assemblies
- Microsoft.AspNetCore.Identity
Syntax¶
public interface ISecurityStampValidator
-
interface
Microsoft.AspNetCore.Identity.
ISecurityStampValidator
Methods¶
-
ValidateAsync
(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext)¶ Validates a security stamp of an identity as an asynchronous operation, and rebuilds the identity if the validation succeeds, otherwise rejects 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.Task ValidateAsync(CookieValidatePrincipalContext context)
-