ManagedIdentityAppCredentials(String, String, HttpClient, ILogger) Constructor
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.
Initializes a new instance of the ManagedIdentityAppCredentials class. Managed Identity for AAD credentials auth and caching.
public ManagedIdentityAppCredentials (string appId, string oAuthScope, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials
Public Sub New (appId As String, oAuthScope As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)
Parameters
- appId
- String
Client ID for the managed identity assigned to the bot.
- oAuthScope
- String
The scope for the token.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.