UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetTokenAsync(TUser, String, String, CancellationToken) Method

Definition

Returns the token value.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task<string> GetTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
abstract member GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetTokenAsync (user As TUser, loginProvider As String, name As String, cancellationToken As CancellationToken) As Task(Of String)

Parameters

user
TUser

The user.

loginProvider
String

The authentication provider for the token.

name
String

The name of the token.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

Task<String>

The Task that represents the asynchronous operation.

Implements

Applies to