ServiceClientCredentialsFactory class

ボットがボットチャネルに対して独自の ServiceClientCredentials を提供できるようにする ServiceClientCredentialsFactory 抽象クラス。または、ボットが親ボット呼び出しに対してボット チャネルまたはスキル ボットに提供できるようにします。

メソッド

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 です。