ManagedIdentityServiceClientCredentialsFactory class

A Managed Identity implementation of the ServiceClientCredentialsFactory abstract class.

Extends

Constructors

ManagedIdentityServiceClientCredentialsFactory(string, IJwtTokenProviderFactory)

Initializes a new instance of the ManagedIdentityServiceClientCredentialsFactory class.

Methods

createCredentials(string, string)
isAuthenticationDisabled()
isValidAppId(string)

Constructor Details

ManagedIdentityServiceClientCredentialsFactory(string, IJwtTokenProviderFactory)

Initializes a new instance of the ManagedIdentityServiceClientCredentialsFactory class.

new ManagedIdentityServiceClientCredentialsFactory(appId: string, tokenProviderFactory: IJwtTokenProviderFactory)

Parameters

appId

string

Client ID for the managed identity assigned to the bot.

tokenProviderFactory
IJwtTokenProviderFactory

The JWT token provider factory to use.

Method Details

createCredentials(string, string)

function createCredentials(appId: string, audience: string): Promise<ServiceClientCredentials>

Parameters

appId

string

audience

string

Returns

Promise<ServiceClientCredentials>

isAuthenticationDisabled()

function isAuthenticationDisabled(): Promise<boolean>

Returns

Promise<boolean>

isValidAppId(string)

function isValidAppId(appId: string): Promise<boolean>

Parameters

appId

string

Returns

Promise<boolean>