Share via


UserToken.GetAadTokensWithHttpMessagesAsync Método

Definição

Obter tokens do AAD com mensagens 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>>>
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)))

Parâmetros

userId
String

ID de usuário.

connectionName
String

Nome da conexão.

aadResourceUrls
AadResourceUrls

URLs de recursos do AAD.

channelId
String

ID do canal.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

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

Um objeto de resposta que contém o corpo da resposta e os cabeçalhos de resposta.

Implementações

Exceções

Gerada quando a operação retornou um código de status inválido.

Microsoft.Rest.SerializationException

Gerada quando não é possível desserializar a resposta.

Microsoft.Rest.ValidationException

Gerado quando um parâmetro obrigatório é nulo.

Gerado quando um valor de entrada não corresponde ao tipo de dados, intervalo ou padrão esperados.

Aplica-se a