共用方式為


TwoFactorSecurityStampValidator<TUser> 類別

定義

負責驗證兩個因素身分識別 Cookie 安全性戳記。

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

類型參數

TUser

封裝使用者的型別。

繼承
TwoFactorSecurityStampValidator<TUser>
實作

建構函式

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

建立 SecurityStampValidator<TUser> 的新執行個體。

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
已淘汰.

建立 SecurityStampValidator<TUser> 的新執行個體。

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

建立 SecurityStampValidator<TUser> 的新執行個體。

屬性

Clock
已淘汰.

ISystemClock

(繼承來源 SecurityStampValidator<TUser>)
Logger

ILogger取得用來記錄訊息的 。

(繼承來源 SecurityStampValidator<TUser>)
Options

SecurityStampValidatorOptions

(繼承來源 SecurityStampValidator<TUser>)
SignInManager

SignInManager。

(繼承來源 SecurityStampValidator<TUser>)
TimeProvider

TimeProvider

(繼承來源 SecurityStampValidator<TUser>)

方法

SecurityStampVerified(TUser, CookieValidatePrincipalContext)

驗證安全性戳記時呼叫。

ValidateAsync(CookieValidatePrincipalContext)

驗證身分識別的安全性戳記做為非同步作業,並在驗證成功時重建身分識別,否則會拒絕身分識別。

(繼承來源 SecurityStampValidator<TUser>)
VerifySecurityStamp(ClaimsPrincipal)

驗證主體的安全性戳記,如果成功,則會傳回相符的使用者

適用於