MsalServiceClientCredentialsFactory Constructor

Definition

Initializes a new instance of the MsalServiceClientCredentialsFactory class.

public MsalServiceClientCredentialsFactory (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Identity.Client.IConfidentialClientApplication clientApplication, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalServiceClientCredentialsFactory : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Identity.Client.IConfidentialClientApplication * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalServiceClientCredentialsFactory
Public Sub New (configuration As IConfiguration, clientApplication As IConfidentialClientApplication, Optional logger As ILogger = Nothing)

Parameters

configuration
IConfiguration

IConfiguration where to get the AppId from.

clientApplication
IConfidentialClientApplication

IConfidentialClientApplication used to acquire tokens.

logger
ILogger

Optional ILogger for credential acquisition telemetry.

Applies to