UserTokenApiClient.GetAadAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- cancellationToken
- CancellationToken