ServiceClientCredentialsFactory class

ServiceClientCredentialsFactory 抽象类,它允许机器人为机器人到机器人通道或技能机器人提供其自己的 ServiceClientCredentials 到父机器人调用。

方法

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

用于创建 ServiceClientCredentials 的工厂方法。

isAuthenticationDisabled()

检查是否禁用了机器人身份验证。

isValidAppId(string)

验证应用 ID。

方法详细信息

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

用于创建 ServiceClientCredentials 的工厂方法。

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

参数

appId

string

appId。

audience

string | undefined

受众。

loginEndpoint

string

登录 URL。

validateAuthority

boolean

要使用的验证机构值。

返回

Promise<ServiceClientCredentials>

ServiceClientCredentials

isAuthenticationDisabled()

检查是否禁用了机器人身份验证。

function isAuthenticationDisabled(): Promise<boolean>

返回

Promise<boolean>

如果禁用了机器人身份验证,则结果为 true;否则为 false。

isValidAppId(string)

验证应用 ID。

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

参数

appId

string

要验证的应用 ID。

返回

Promise<boolean>

如果 appId 对控制器有效,则结果为 true;否则为 false。