Język

OAuthClientOld.GetAadTokensAsync Metoda

Definicja

Retrieve an Azure Active Directory token for particular AAD resources.

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

Parametry

userId
String

Identyfikator użytkownika.

connectionName
String

Nazwa połączenia uwierzytelniającego do wymiany tokenów AAD.

resourceUrls
String[]

Kolekcja adresów URL zasobów, dla których można pobierać tokeny.

cancellationToken
CancellationToken

Token anulowania, który może być używany przez inne obiekty lub wątki do otrzymywania powiadomienia o anulowaniu.

Zwraca

Zadanie reprezentujące pracę w kolejce do wykonania.

Uwagi

Jeśli zadanie zostanie pomyślnie zakończone, odpowiedź zawiera kolekcję obiektów TokenResponse z resourceUrl i odpowiadającym mu TokenResponse.

Dotyczy