TestAdapter.GetUserTokenAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| GetUserTokenAsync(ITurnContext, AppCredentials, String, String, CancellationToken) |
Probeert het token op te halen voor een gebruiker die zich in een inlogflow bevindt, met behulp van aangepaste AppCredentials. |
| GetUserTokenAsync(ITurnContext, String, String, CancellationToken) |
Probeert het token op te halen voor een gebruiker die zich in een inlogflow bevindt, met behulp van de AppCredentials van de bot. |
GetUserTokenAsync(ITurnContext, AppCredentials, String, String, CancellationToken)
Probeert het token op te halen voor een gebruiker die zich in een inlogflow bevindt, 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 beurt van gesprek met de gebruiker.
- oAuthAppCredentials
- AppCredentials
AppCredentials voor OAuth.
- connectionName
- String
De naam van de verificatieverbinding die moet worden gebruikt.
- magicCode
- String
(Optioneel) Optionele door de gebruiker ingevoerde code 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 die zich in een inlogflow bevindt, 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 beurt van gesprek met de gebruiker.
- connectionName
- String
De naam van de verificatieverbinding die moet worden gebruikt.
- magicCode
- String
(Optioneel) gebruikerscode invoerde om te valideren.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
Tokenantwoord of null als het token niet is gevonden.