Condividi tramite


IUserToken.GetAadTokensWithHttpMessagesAsync Metodo

Definizione

Ottenere il token AAD con il messaggio 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)))

Parametri

userId
String

ID utente.

connectionName
String

Nome connessione.

aadResourceUrls
AadResourceUrls

URL delle risorse AAD.

channelId
String

ID del canale.

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

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

Oggetto Task che rappresenta l'oggetto TokenResponse dell'operazione HTTP.

Eccezioni

Generato quando l'operazione ha restituito un codice di stato non valido.

Microsoft.Rest.SerializationException

Generato quando non è possibile deserializzare la risposta.

Microsoft.Rest.ValidationException

Generato quando un parametro obbligatorio è Null.

Si applica a