TwoFactorSecurityStampValidator<TUser>.VerifySecurityStamp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.