BotFrameworkAdapter.BuildCredentialsAsync(String, String) 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.
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.