ISecurityStampValidator Interface

Summary

Provides an abstraction for a validating a security stamp of an incoming identity, and regenerating or rejecting the identity based on the validation result.

Syntax

public interface ISecurityStampValidator

GitHub

View on GitHub

interface Microsoft.AspNet.Identity.ISecurityStampValidator

Methods

ValidateAsync(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 (CookieValidatePrincipalContext) – The context containing the ClaimsPrincipaland AuthenticationProperties to validate.
Return type:

System.Threading.Tasks.Task

Returns:

The <see cref=”T:System.Threading.Tasks.Task” /> that represents the asynchronous validation operation.

Task ValidateAsync(CookieValidatePrincipalContext context)