UserTokenClient.GetUserTokenAsync 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.
Attempts to retrieve the token for a user that's in a login flow.
public abstract System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetUserTokenAsync (string userId, string connectionName, string channelId, string magicCode, System.Threading.CancellationToken cancellationToken);
abstract member GetUserTokenAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public MustOverride Function GetUserTokenAsync (userId As String, connectionName As String, channelId As String, magicCode As String, cancellationToken As CancellationToken) As Task(Of TokenResponse)
Parameters
- userId
- String
The user id that will be associated with the token.
- connectionName
- String
Name of the auth connection to use.
- channelId
- String
The channel Id that will be associated with the token.
- magicCode
- String
(Optional) Optional user entered code to validate.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Token Response.