Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously determines whether the provider can generate tokens for the user. By default this is equal to manager.SupportsUserSecurityStamp.
Namespace: Microsoft.AspNet.Identity Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<bool> IsValidProviderForUserAsync(
UserManager<TUser, TKey> manager,
TUser user
)
public:
virtual Task<bool>^ IsValidProviderForUserAsync(
UserManager<TUser, TKey>^ manager,
TUser user
)
abstract IsValidProviderForUserAsync :
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
override IsValidProviderForUserAsync :
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
Public Overridable Function IsValidProviderForUserAsync (
manager As UserManager(Of TUser, TKey),
user As TUser
) As Task(Of Boolean)
Parameters
manager Type: Microsoft.AspNet.Identity.UserManager<TUser, TKey>
The user manager.
user Type: TUser
The user.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.
Implements
IUserTokenProvider<TUser, TKey>.IsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)
See Also
TotpSecurityStampBasedTokenProvider<TUser, TKey> Class Microsoft.AspNet.Identity Namespace [ASP.NET Identity](https://go.microsoft.com/fwlink/p/?linkid=393664.
Return to top