UserTokenClient.GetAadTokensAsync 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.
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.