Language

UserTokenApiClient.GetAadAsync Method

Definition

Get AAD tokens for specified resources.

public System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,Microsoft.Teams.Core.GetTokenResult>?> GetAadAsync(string userId, string connectionName, string channelId, System.Collections.Generic.IList<string>? resourceUrls = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetAadAsync : string * string * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, Microsoft.Teams.Core.GetTokenResult>>
Public Function GetAadAsync (userId As String, connectionName As String, channelId As String, Optional resourceUrls As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDictionary(Of String, GetTokenResult))

Parameters

userId
String
connectionName
String
channelId
String
resourceUrls
IList<String>
cancellationToken
CancellationToken

Returns

Applies to