Jaa


ManagedIdentityAuthenticator(String, String, HttpClient, ILogger) Constructor

Definition

Initializes a new instance of the ManagedIdentityAuthenticator class.

public ManagedIdentityAuthenticator (string appId, string resource, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.ManagedIdentityAuthenticator : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.ManagedIdentityAuthenticator
Public Sub New (appId As String, resource As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

Parameters

appId
String

Client id for the managed identity to be used for acquiring tokens.

resource
String

Resource for which to acquire the token.

customHttpClient
HttpClient

A customized instance of the HttpClient class.

logger
ILogger

The type used to perform logging.

Applies to