UserTokenClient.GetAadTokensAsync Metodo

Definizione

Recupera i token di Azure Active Directory per risorse specifiche in una connessione configurata.

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

Parametri

userId
String

ID utente associato al token.

connectionName
String

Nome della connessione di autenticazione da usare.

resourceUrls
String[]

Elenco degli URL delle risorse per recuperare i token.

channelId
String

ID del canale associato al token.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività del dizionario di resourceUrl al tokenResponse corrispondente.

Si applica a