Share via


BotFrameworkAdapter.BuildCredentialsAsync(String, String) Method

Definition

Logic to build an AppCredentials object to be used to acquire tokens for this HttpClient.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials> BuildCredentialsAsync (string appId, string oAuthScope = default);
abstract member BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
override this.BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
Protected Overridable Function BuildCredentialsAsync (appId As String, Optional oAuthScope As String = Nothing) As Task(Of AppCredentials)

Parameters

appId
String

The application id.

oAuthScope
String

The optional OAuth scope.

Returns

The app credentials to be used to acquire tokens.

Applies to