اقرأ باللغة الإنجليزية

مشاركة عبر


TwoFactorSecurityStampValidator<TUser> Class

Definition

Responsible for validation of two factor identity cookie security stamp.

C#
public class TwoFactorSecurityStampValidator<TUser> : Microsoft.AspNetCore.Identity.SecurityStampValidator<TUser>, Microsoft.AspNetCore.Identity.ITwoFactorSecurityStampValidator where TUser : class

Type Parameters

TUser

The type encapsulating a user.

Inheritance
TwoFactorSecurityStampValidator<TUser>
Implements

Constructors

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

منتج الإصدارات
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0