Share via


UserTokenExtensions.GetAadTokensAsync Method

Definition

Get AAD Token.

public static System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (this Microsoft.Bot.Connector.IUserToken operations, string userId, string connectionName, Microsoft.Bot.Schema.AadResourceUrls aadResourceUrls, string channelId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAadTokensAsync : Microsoft.Bot.Connector.IUserToken * string * string * Microsoft.Bot.Schema.AadResourceUrls * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, Microsoft.Bot.Schema.TokenResponse>>
<Extension()>
Public Function GetAadTokensAsync (operations As IUserToken, userId As String, connectionName As String, aadResourceUrls As AadResourceUrls, Optional channelId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDictionary(Of String, TokenResponse))

Parameters

operations
IUserToken

The operations group for this extension method.

userId
String

User ID.

connectionName
String

Connection name.

aadResourceUrls
AadResourceUrls

AAD Resource URLs.

channelId
String

Channel ID.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task representing an IDictionary of TokenResponses.

Applies to