SecurityStampValidator<TUser>.VerifySecurityStamp(ClaimsPrincipal) 方法

定义

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

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。

适用于