Share via


ManagedIdentityServiceClientCredentialsFactory Constructor

Definition

Initializes a new instance of the ManagedIdentityServiceClientCredentialsFactory class.

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

Parameters

appId
String

Client ID for the managed identity assigned to the bot.

tokenProviderFactory
IJwtTokenProviderFactory

The JWT token provider factory to use.

httpClient
HttpClient

A custom httpClient to use.

logger
ILogger

A logger instance to use.

Applies to