Compartir a través de


IUserToken.GetAadTokensWithHttpMessagesAsync Método

Definición

Obtenga el token de AAD con el mensaje HTTP.

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

Parámetros

userId
String

Id. de usuario.

connectionName
String

Nombre de la conexión.

aadResourceUrls
AadResourceUrls

Direcciones URL de recursos de AAD.

channelId
String

Identificador del canal.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

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

Tarea que representa la TokenResponse de la operación HTTP.

Excepciones

Se produce cuando la operación devolvió un código de estado no válido.

Microsoft.Rest.SerializationException

Se produce cuando no se puede deserializar la respuesta.

Microsoft.Rest.ValidationException

Se produce cuando un parámetro obligatorio es NULL.

Se aplica a