Share via


DataProtectorTokenProvider<TUser, TKey>.IsValidProviderForUserAsync Method (UserManager<TUser, TKey>, TUser)

 

Asynchronously determines whether the provider can be used to generate tokens for this user.

Namespace:   Microsoft.AspNet.Identity.Owin
Assembly:  Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)

Syntax

public Task<bool> IsValidProviderForUserAsync(
    UserManager<TUser, TKey> manager,
    TUser user
)
public:
virtual Task<bool>^ IsValidProviderForUserAsync(
    UserManager<TUser, TKey>^ manager,
    TUser user
) sealed
abstract IsValidProviderForUserAsync : 
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser -> Task<bool>
override IsValidProviderForUserAsync : 
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser -> Task<bool>
Public Function IsValidProviderForUserAsync (
    manager As UserManager(Of TUser, TKey),
    user As TUser
) As Task(Of Boolean)

Parameters

  • user
    Type: TUser

    The user of the token.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

The task that completes the operation.

Implements

IUserTokenProvider<TUser, TKey>.IsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)

See Also

DataProtectorTokenProvider<TUser, TKey> Class
Microsoft.AspNet.Identity.Owin Namespace
ASP.NET Identity

Return to top