Delen via


IUserTokenProvider.GetUserTokenAsync Methode

Definitie

Probeert het token op te halen voor een gebruiker in een aanmeldingsstroom, met behulp van de AppCredentials van de bot.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetUserTokenAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string connectionName, string magicCode, System.Threading.CancellationToken cancellationToken);
abstract member GetUserTokenAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public Function GetUserTokenAsync (turnContext As ITurnContext, connectionName As String, magicCode As String, cancellationToken As CancellationToken) As Task(Of TokenResponse)

Parameters

turnContext
ITurnContext

Context voor de huidige wending van het gesprek met de gebruiker.

connectionName
String

Naam van de verificatieverbinding die moet worden gebruikt.

magicCode
String

(Optioneel) Optionele gebruiker heeft code ingevoerd om te valideren.

cancellationToken
CancellationToken

Annuleringstoken.

Retouren

Tokenreactie.

Van toepassing op