SecurityStampValidator<TUser>.VerifySecurityStamp Method

Definition

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

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)

Parameters

principal
ClaimsPrincipal

The principal to verify.

Returns

Task<TUser>

The verified user or null if verification fails.

Applies to