BotFrameworkAdapter.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
| 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 = default);
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, Optional cancellationToken As CancellationToken = Nothing) 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
Tokenreactie.
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 = default);
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, Optional cancellationToken As CancellationToken = Nothing) 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.