Jaa


UserTokenClient.GetAadTokensAsync Method

Definition

Retrieves Azure Active Directory tokens for particular resources on a configured connection.

public abstract System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (string userId, string connectionName, string[] resourceUrls, string channelId, System.Threading.CancellationToken cancellationToken);
abstract member GetAadTokensAsync : string * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
Public MustOverride Function GetAadTokensAsync (userId As String, connectionName As String, resourceUrls As String(), channelId As String, cancellationToken As CancellationToken) As Task(Of Dictionary(Of String, TokenResponse))

Parameters

userId
String

The user id that will be associated with the token.

connectionName
String

Name of the auth connection to use.

resourceUrls
String[]

The list of resource URLs to retrieve tokens for.

channelId
String

The channel Id that will be associated with the token.

cancellationToken
CancellationToken

Cancellation token.

Returns

A Task of Dictionary of resourceUrl to the corresponding TokenResponse.

Applies to