Share via


UserToken.GetAadTokensWithHttpMessagesAsync Method

Definition

Get AAD Tokens with HTTP messages.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IDictionary<string,Microsoft.Bot.Schema.TokenResponse>>> GetAadTokensWithHttpMessagesAsync (string userId, string connectionName, Microsoft.Bot.Schema.AadResourceUrls aadResourceUrls, string channelId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensWithHttpMessagesAsync : string * string * Microsoft.Bot.Schema.AadResourceUrls * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IDictionary<string, Microsoft.Bot.Schema.TokenResponse>>>
override this.GetAadTokensWithHttpMessagesAsync : string * string * Microsoft.Bot.Schema.AadResourceUrls * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IDictionary<string, Microsoft.Bot.Schema.TokenResponse>>>
Public Function GetAadTokensWithHttpMessagesAsync (userId As String, connectionName As String, aadResourceUrls As AadResourceUrls, Optional channelId As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IDictionary(Of String, TokenResponse)))

Parameters

userId
String

User ID.

connectionName
String

Connection name.

aadResourceUrls
AadResourceUrls

AAD resource URLs.

channelId
String

Channel ID.

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.HttpOperationResponse<IDictionary<String,TokenResponse>>>

A response object containing the response body and response headers.

Implements

Exceptions

Thrown when the operation returned an invalid status code.

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response.

Microsoft.Rest.ValidationException

Thrown when a required parameter is null.

Thrown when an input value does not match the expected data type, range or pattern.

Applies to