BotFrameworkAdapter.CreateOAuthApiClientAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateOAuthApiClientAsync(ITurnContext) |
Creates an OAuth client for the bot. |
CreateOAuthApiClientAsync(ITurnContext, AppCredentials) |
Creates an OAuth client for the bot with the credentials. |
CreateOAuthApiClientAsync(ITurnContext)
Creates an OAuth client for the bot.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient> CreateOAuthApiClientAsync (Microsoft.Bot.Builder.ITurnContext turnContext);
abstract member CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
override this.CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
Protected Overridable Function CreateOAuthApiClientAsync (turnContext As ITurnContext) As Task(Of OAuthClient)
Parameters
- turnContext
- ITurnContext
The context object for the current turn.
Returns
An OAuth client for the bot.
Applies to
CreateOAuthApiClientAsync(ITurnContext, AppCredentials)
Creates an OAuth client for the bot with the credentials.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient> CreateOAuthApiClientAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials);
abstract member CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
override this.CreateOAuthApiClientAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.OAuthClient>
Protected Overridable Function CreateOAuthApiClientAsync (turnContext As ITurnContext, oAuthAppCredentials As AppCredentials) As Task(Of OAuthClient)
Parameters
- turnContext
- ITurnContext
The context object for the current turn.
- oAuthAppCredentials
- AppCredentials
AppCredentials for OAuth.
Returns
An OAuth client for the bot.