Jaa


ManagedIdentityAppCredentials(String, String, HttpClient, ILogger) Constructor

Definition

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.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to