SignInManager<TUser>.ValidateSecurityStampAsync 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.
Overloads
ValidateSecurityStampAsync(ClaimsPrincipal) |
Validates the security stamp for the specified |
ValidateSecurityStampAsync(TUser, String) |
Validates the security stamp for the specified |
ValidateSecurityStampAsync(ClaimsPrincipal)
- Source:
- SignInManager.cs
- Source:
- SignInManager.cs
- Source:
- SignInManager.cs
Validates the security stamp for the specified principal
against
the persisted stamp for the current user, as an asynchronous operation.
public:
virtual System::Threading::Tasks::Task<TUser> ^ ValidateSecurityStampAsync(System::Security::Claims::ClaimsPrincipal ^ principal);
public virtual System.Threading.Tasks.Task<TUser> ValidateSecurityStampAsync (System.Security.Claims.ClaimsPrincipal principal);
public virtual System.Threading.Tasks.Task<TUser?> ValidateSecurityStampAsync (System.Security.Claims.ClaimsPrincipal? principal);
abstract member ValidateSecurityStampAsync : System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task<'User (requires 'User : null)>
override this.ValidateSecurityStampAsync : System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Overridable Function ValidateSecurityStampAsync (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.
Applies to
ValidateSecurityStampAsync(TUser, String)
- Source:
- SignInManager.cs
- Source:
- SignInManager.cs
- Source:
- SignInManager.cs
Validates the security stamp for the specified user
. If no user is specified, or if the store
does not support security stamps, validation is considered successful.
public:
virtual System::Threading::Tasks::Task<bool> ^ ValidateSecurityStampAsync(TUser user, System::String ^ securityStamp);
public virtual System.Threading.Tasks.Task<bool> ValidateSecurityStampAsync (TUser user, string securityStamp);
public virtual System.Threading.Tasks.Task<bool> ValidateSecurityStampAsync (TUser? user, string? securityStamp);
abstract member ValidateSecurityStampAsync : 'User * string -> System.Threading.Tasks.Task<bool>
override this.ValidateSecurityStampAsync : 'User * string -> System.Threading.Tasks.Task<bool>
Public Overridable Function ValidateSecurityStampAsync (user As TUser, securityStamp As String) As Task(Of Boolean)
Parameters
- user
- TUser
The user whose stamp should be validated.
- securityStamp
- String
The expected security stamp value.
Returns
The result of the validation.