Share via


TwoFactorSecurityStampValidator<TUser>.VerifySecurityStamp Method

Definition

Verifies the principal's security stamp, returns the matching user if successful

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)

Parameters

principal
ClaimsPrincipal

The principal to verify.

Returns

Task<TUser>

The verified user or null if verification fails.

Applies to