Taal

OAuthClientOld.GetUserTokenAsync Methode

Definitie

Krijgt een gebruikerstoken voor een bepaalde gebruiker en verbinding.

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)

Parameters

userId
String

De gebruikers-ID.

connectionName
String

De naam van de verificatieverbinding die moet worden gebruikt.

magicCode
String

De gebruiker voerde de code in om te valideren.

customHeaders
Dictionary<String,List<String>>

customHeaders.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.

Opmerkingen

Als de taak succesvol wordt voltooid, bevat de TokenResponse het gebruikerstoken.

Van toepassing op