TwoFactorSecurityStampValidator<TUser>.VerifySecurityStamp 方法

定义

验证主体的安全标记,如果成功,则返回匹配的用户

protected:
 override System::Threading::Tasks::Task<TUser> ^ VerifySecurityStamp(System::Security::Claims::ClaimsPrincipal ^ principal);
protected override System.Threading.Tasks.Task<TUser> VerifySecurityStamp (System.Security.Claims.ClaimsPrincipal principal);
protected override System.Threading.Tasks.Task<TUser?> VerifySecurityStamp (System.Security.Claims.ClaimsPrincipal? principal);
override this.VerifySecurityStamp : System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Protected Overrides Function VerifySecurityStamp (principal As ClaimsPrincipal) As Task(Of TUser)

参数

principal
ClaimsPrincipal

要验证的主体。

返回

Task<TUser>

验证用户;如果验证失败,则为 null。

适用于