SignInManager<TUser>.ValidateTwoFactorSecurityStampAsync 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.
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
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.