共用方式為


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。

適用於