SignInManager<TUser>.ValidateTwoFactorSecurityStampAsync Method

Definition

Validates the security stamp for the specified principal from one of the two factor principals (remember client or user id) against the persisted stamp for the current user, as an asynchronous operation.

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

Parameters

principal
ClaimsPrincipal

The principal whose stamp should be validated.

Returns

Task<TUser>

The task object representing the asynchronous operation. The task will contain the TUser if the stamp matches the persisted value, otherwise it will return null.

Applies to