UserManager<TUser>.GenerateUserTokenAsync(TUser, String, String) 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.
Generates a token for the given user
and purpose
.
public:
virtual System::Threading::Tasks::Task<System::String ^> ^ GenerateUserTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ purpose);
public virtual System.Threading.Tasks.Task<string> GenerateUserTokenAsync (TUser user, string tokenProvider, string purpose);
abstract member GenerateUserTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
override this.GenerateUserTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
Public Overridable Function GenerateUserTokenAsync (user As TUser, tokenProvider As String, purpose As String) As Task(Of String)
Parameters
- user
- TUser
The user the token will be for.
- tokenProvider
- String
The provider which will generate the token.
- purpose
- String
The purpose the token will be for.
Returns
The Task that represents result of the asynchronous operation, a token for the given user and purpose.