Freigeben über


ConfigurationServiceClientCredentialFactory class

ServiceClientCredentialsFactory, das einen ConfigurationServiceClientCredentialFactoryOptions oder eine Konfigurationsinstanz verwendet, um ServiceClientCredentials mit einer AppId und einem App-Kennwort zu erstellen.

Extends

PasswordServiceClientCredentialFactory

Konstruktoren

ConfigurationServiceClientCredentialFactory(ConfigurationServiceClientCredentialFactoryOptions)

Initialisiert eine neue Instanz der ConfigurationServiceClientCredentialFactory-Klasse .

Geerbte Eigenschaften

appId

Die App-ID für diese Anmeldeinformationen.

password

Das App-Kennwort für diese Anmeldeinformationen.

tenantId

Die Mandanten-ID des Azure AD-Mandanten, in dem der Bot erstellt wird.

Methoden

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

Details zum Konstruktor

ConfigurationServiceClientCredentialFactory(ConfigurationServiceClientCredentialFactoryOptions)

Initialisiert eine neue Instanz der ConfigurationServiceClientCredentialFactory-Klasse .

new ConfigurationServiceClientCredentialFactory(factoryOptions?: ConfigurationServiceClientCredentialFactoryOptions)

Parameter

Geerbte Eigenschaftsdetails

appId

Die App-ID für diese Anmeldeinformationen.

appId: string | null

Eigenschaftswert

string | null

Geerbt von PasswordServiceClientCredentialFactory.appId

password

Das App-Kennwort für diese Anmeldeinformationen.

password: string | null

Eigenschaftswert

string | null

Geerbt von PasswordServiceClientCredentialFactory.password

tenantId

Die Mandanten-ID des Azure AD-Mandanten, in dem der Bot erstellt wird.

tenantId: string | null

Eigenschaftswert

string | null

Geerbt von PasswordServiceClientCredentialFactory.tenantId

Details zur Methode

createCredentials(string, string, string, boolean)

function createCredentials(microsoftAppId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>

Parameter

microsoftAppId

string

audience

string

loginEndpoint

string

validateAuthority

boolean

Gibt zurück

Promise<ServiceClientCredentials>

isAuthenticationDisabled()

function isAuthenticationDisabled(): Promise<boolean>

Gibt zurück

Promise<boolean>

isValidAppId(string)

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

Parameter

microsoftAppId

string

Gibt zurück

Promise<boolean>