MsalServiceClientCredentialsFactory Class

Definition

Credential factory that uses MSAL to acquire tokens.

public class MsalServiceClientCredentialsFactory : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory
type MsalServiceClientCredentialsFactory = class
    inherit ServiceClientCredentialsFactory
Public Class MsalServiceClientCredentialsFactory
Inherits ServiceClientCredentialsFactory
Inheritance
MsalServiceClientCredentialsFactory

Constructors

MsalServiceClientCredentialsFactory(IConfiguration, IConfidentialClientApplication, ILogger)

Initializes a new instance of the MsalServiceClientCredentialsFactory class.

Properties

AppId

Gets the Microsoft App id.

TenantId

Gets the Microsoft Tenant id.

Methods

CreateCredentialsAsync(String, String, String, Boolean, CancellationToken)

A factory method for creating ServiceClientCredentials.

IsAuthenticationDisabledAsync(CancellationToken)

Checks whether bot authentication is disabled.

IsValidAppIdAsync(String, CancellationToken)

Validates an app ID.

Applies to