Lingua

OAuthClientOld.GetUserTokenAsync Metodo

Definizione

Ottiene un token utente per un dato utente e connessione.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetUserTokenAsync(string userId, string connectionName, string magicCode, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetUserTokenAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public Function GetUserTokenAsync (userId As String, connectionName As String, magicCode As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenResponse)

Parametri

userId
String

L'ID dell'utente.

connectionName
String

Nome della connessione di autenticazione da usare.

magicCode
String

L'utente ha inserito un codice per validare.

customHeaders
Dictionary<String,List<String>>

customHeaders.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

Attività che rappresenta il lavoro in coda da eseguire.

Commenti

Se il compito viene completato con successo, contiene TokenResponse il token utente.

Si applica a