SecurityStampValidator<TUser> Class

Provides default implementation of validation functions for security stamps.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public class SecurityStampValidator<TUser> : ISecurityStampValidator where TUser : class
class Microsoft.AspNetCore.Identity.SecurityStampValidator<TUser>

Constructors

SecurityStampValidator(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IdentityOptions>, Microsoft.AspNetCore.Identity.SignInManager<TUser>)
public SecurityStampValidator(IOptions<IdentityOptions> options, SignInManager<TUser> signInManager)

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 and Microsoft.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 virtual Task ValidateAsync(CookieValidatePrincipalContext context)