Partager via


ServiceClientCredentialsFactory class

Classe abstraite ServiceClientCredentialsFactory qui permet aux bots de fournir leur propre ServiceClientCredentials pour les appels de bot à bot ou de bot de compétence aux appels de bot parent.

Méthodes

createCredentials(string, string | undefined, string, boolean)

Méthode de fabrique pour créer ServiceClientCredentials.

isAuthenticationDisabled()

Vérifie si l’authentification du bot est désactivée.

isValidAppId(string)

Valide un ID d’application.

Détails de la méthode

createCredentials(string, string | undefined, string, boolean)

Méthode de fabrique pour créer ServiceClientCredentials.

function createCredentials(appId: string, audience: string | undefined, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>

Paramètres

appId

string

AppId.

audience

string | undefined

Le public.

loginEndpoint

string

URL de connexion.

validateAuthority

boolean

Valeur d’autorité de validation à utiliser.

Retours

Promise<ServiceClientCredentials>

ServiceClientCredentials.

isAuthenticationDisabled()

Vérifie si l’authentification du bot est désactivée.

function isAuthenticationDisabled(): Promise<boolean>

Retours

Promise<boolean>

Si l’authentification du bot est désactivée, le résultat est true ; sinon, false.

isValidAppId(string)

Valide un ID d’application.

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

Paramètres

appId

string

ID d’application à valider.

Retours

Promise<boolean>

Le résultat est true si appId est valide pour le contrôleur ; sinon, false.