Share via


BotFrameworkAdapter.CreateOAuthApiClientAsync Method

Definition

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.

Applies to