次の方法で共有


ConfigurationServiceClientCredentialFactory クラス

定義

を使用 IConfiguration してアプリの資格情報を参照する資格情報プロバイダー。

public class ConfigurationServiceClientCredentialFactory : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory
type ConfigurationServiceClientCredentialFactory = class
    inherit ServiceClientCredentialsFactory
Public Class ConfigurationServiceClientCredentialFactory
Inherits ServiceClientCredentialsFactory
継承
ConfigurationServiceClientCredentialFactory

注釈

これにより、 のキーMicrosoftAppIdKeyが構成エントリから に設定されPassword、構成エントリから の キーMicrosoftAppPasswordKeyが に設定AppIdされます。

注: キーが存在しない場合は、 null 値が使用されます。

コンストラクター

ConfigurationServiceClientCredentialFactory(IConfiguration, HttpClient, ILogger)

ConfigurationServiceClientCredentialFactory クラスの新しいインスタンスを初期化します。

メソッド

CreateCredentialsAsync(String, String, String, Boolean, CancellationToken)

ServiceClientCredentials を作成するためのファクトリ メソッド。

IsAuthenticationDisabledAsync(CancellationToken)

ボット認証が無効になっているかどうかを確認します。

IsValidAppIdAsync(String, CancellationToken)

アプリ ID を検証します。

適用対象