UserManager<TUser>.GetAuthenticationTokenAsync 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.
Returns an authentication token for a user.
public:
virtual System::Threading::Tasks::Task<System::String ^> ^ GetAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName);
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
public virtual System.Threading.Tasks.Task<string?> GetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
abstract member GetAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
override this.GetAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String) As Task(Of String)
Parameters
- user
- TUser
- loginProvider
- String
The authentication scheme for the provider the token is associated with.
- tokenName
- String
The name of the token.
Returns
The authentication token for a user