Delen via


TestAdapter.GetUserTokenAsync Methode

Definitie

Overloads

GetUserTokenAsync(ITurnContext, AppCredentials, String, String, CancellationToken)

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

GetUserTokenAsync(ITurnContext, String, String, CancellationToken)

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

GetUserTokenAsync(ITurnContext, AppCredentials, String, String, CancellationToken)

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

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetUserTokenAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string connectionName, string magicCode, System.Threading.CancellationToken cancellationToken);
abstract member GetUserTokenAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
override this.GetUserTokenAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public Overridable Function GetUserTokenAsync (turnContext As ITurnContext, oAuthAppCredentials As AppCredentials, 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.

oAuthAppCredentials
AppCredentials

AppCredentials voor OAuth.

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

Tokenantwoord of null als het token niet is gevonden.

Implementeringen

Van toepassing op

GetUserTokenAsync(ITurnContext, String, String, CancellationToken)

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

public virtual 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>
override this.GetUserTokenAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public Overridable 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) de gebruiker heeft code ingevoerd om te valideren.

cancellationToken
CancellationToken

Annuleringstoken.

Retouren

Tokenantwoord of null als het token niet is gevonden.

Implementeringen

Van toepassing op