PasswordServiceClientCredentialFactory class
ServiceClientCredentialsFactory インターフェイスの単純な実装。
コンストラクター
プロパティ
app |
この資格情報のアプリ ID。 |
password | この資格情報のアプリ パスワード。 |
tenant |
ボットが作成される Azure AD テナントのテナント ID。 |
メソッド
create |
ServiceClientCredentials を作成するためのファクトリ メソッド。 |
is |
ボット認証が無効になっているかどうかを確認します。 |
is |
アプリ ID を検証します。 |
コンストラクターの詳細
PasswordServiceClientCredentialFactory(string, string)
PasswordServiceClientCredentialFactory クラスの新しいインスタンスを初期化します。
new PasswordServiceClientCredentialFactory(appId: string, password: string)
パラメーター
- appId
-
string
アプリ ID。
- password
-
string
アプリのパスワード。
PasswordServiceClientCredentialFactory(string, string, string)
PasswordServiceClientCredentialFactory クラスの新しいインスタンスを初期化します。
new PasswordServiceClientCredentialFactory(appId: string, password: string, tenantId: string)
パラメーター
- appId
-
string
アプリ ID。
- password
-
string
アプリのパスワード。
- tenantId
-
string
ボットが作成される Azure AD テナントのテナント ID。
プロパティの詳細
appId
この資格情報のアプリ ID。
appId: string | null
プロパティ値
string | null
password
この資格情報のアプリ パスワード。
password: string | null
プロパティ値
string | null
tenantId
ボットが作成される Azure AD テナントのテナント ID。
tenantId: string | null
プロパティ値
string | null
メソッドの詳細
createCredentials(string, string, string, boolean)
ServiceClientCredentials を作成するためのファクトリ メソッド。
function createCredentials(appId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>
パラメーター
- appId
-
string
appId。
- audience
-
string
対象ユーザー。
- loginEndpoint
-
string
ログイン URL。
- validateAuthority
-
boolean
使用する検証機関の値。
戻り値
Promise<ServiceClientCredentials>
操作の結果を表す Promise。
isAuthenticationDisabled()
ボット認証が無効になっているかどうかを確認します。
function isAuthenticationDisabled(): Promise<boolean>
戻り値
Promise<boolean>
検証結果を使用した Promise。
isValidAppId(string)
アプリ ID を検証します。
function isValidAppId(appId?: string): Promise<boolean>
パラメーター
- appId
-
string
検証する appId。
戻り値
Promise<boolean>
検証結果を使用した Promise。