IUserTokenClient.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 System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse> GetUserTokenAsync(string userId, string connectionName, Microsoft.Agents.Core.Models.ChannelId channelId, string magicCode, System.Threading.CancellationToken cancellationToken);
abstract member GetUserTokenAsync : string * string * Microsoft.Agents.Core.Models.ChannelId * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse>
Public Function GetUserTokenAsync (userId As String, connectionName As String, channelId As ChannelId, 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
- ChannelId
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.