TwoFactorSecurityStampValidator<TUser> Class

Definition

Responsible for validation of two factor identity cookie security stamp.

generic <typename TUser>
 where TUser : classpublic ref class TwoFactorSecurityStampValidator : Microsoft::AspNetCore::Identity::SecurityStampValidator<TUser>, Microsoft::AspNetCore::Identity::ITwoFactorSecurityStampValidator
public class TwoFactorSecurityStampValidator<TUser> : Microsoft.AspNetCore.Identity.SecurityStampValidator<TUser>, Microsoft.AspNetCore.Identity.ITwoFactorSecurityStampValidator where TUser : class
type TwoFactorSecurityStampValidator<'User (requires 'User : null)> = class
    inherit SecurityStampValidator<'User (requires 'User : null)>
    interface ITwoFactorSecurityStampValidator
    interface ISecurityStampValidator
type TwoFactorSecurityStampValidator<'User (requires 'User : null)> = class
    inherit SecurityStampValidator<'User (requires 'User : null)>
    interface ISecurityStampValidator
    interface ITwoFactorSecurityStampValidator
Public Class TwoFactorSecurityStampValidator(Of TUser)
Inherits SecurityStampValidator(Of TUser)
Implements ITwoFactorSecurityStampValidator

Type Parameters

TUser

The type encapsulating a user.

Inheritance
TwoFactorSecurityStampValidator<TUser>
Implements

Constructors

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ILoggerFactory)

Creates a new instance of SecurityStampValidator<TUser>.

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock)

Creates a new instance of SecurityStampValidator<TUser>.

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
Obsolete.

Creates a new instance of SecurityStampValidator<TUser>.

Properties

Clock
Obsolete.

The ISystemClock.

(Inherited from SecurityStampValidator<TUser>)
Logger

Gets the ILogger used to log messages.

(Inherited from SecurityStampValidator<TUser>)
Options

The SecurityStampValidatorOptions.

(Inherited from SecurityStampValidator<TUser>)
SignInManager

The SignInManager.

(Inherited from SecurityStampValidator<TUser>)
TimeProvider

The TimeProvider.

(Inherited from SecurityStampValidator<TUser>)

Methods

SecurityStampVerified(TUser, CookieValidatePrincipalContext)

Called when the security stamp has been verified.

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.

(Inherited from SecurityStampValidator<TUser>)
VerifySecurityStamp(ClaimsPrincipal)

Verifies the principal's security stamp, returns the matching user if successful

Applies to