Compartilhar via


UserTokenExtensions.GetAadTokensAsync Método

Definição

Obter Token do AAD.

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))

Parâmetros

operations
IUserToken

O grupo de operações para esse método de extensão.

userId
String

ID de usuário.

connectionName
String

Nome da conexão.

aadResourceUrls
AadResourceUrls

URLs de recurso do AAD.

channelId
String

ID do canal.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Uma tarefa que representa um IDictionary de TokenResponses.

Aplica-se a