共用方式為


SecurityStampValidator<TUser>.VerifySecurityStamp 方法

定義

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

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

參數

principal
ClaimsPrincipal

要驗證的主體。

傳回

Task<TUser>

已驗證的使用者,如果驗證失敗,則為 Null。

適用於