語言

ConfigurationCredentialProvider 類別

定義

警告

Use ConfigurationBotFrameworkAuthentication instead to configure credentials.

載入來自 AppSettings.

[System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)]
public sealed class ConfigurationCredentialProvider : Microsoft.Bot.Connector.Authentication.SimpleCredentialProvider
[<System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)>]
type ConfigurationCredentialProvider = class
    inherit SimpleCredentialProvider
Public NotInheritable Class ConfigurationCredentialProvider
Inherits SimpleCredentialProvider
繼承
ConfigurationCredentialProvider
屬性

備註

這會讓 AppId 「From a App」設定的項目填入 的 MicrosoftAppIdKey 鍵值,而 Password from a app 的設定則是 的鍵 MicrosoftAppPasswordKey。

注意:若鍵不存在,將使用一個 null 值。

建構函式

名稱 Description
ConfigurationCredentialProvider()
已淘汰.

初始化 ConfigurationCredentialProvider 類別的新執行個體。

ConfigurationCredentialProvider(IConfiguration)
已淘汰.

初始化 ConfigurationCredentialProvider 類別的新執行個體。

屬性

名稱 Description
AppId
已淘汰.

取得或設定這個憑證的應用程式 ID。

(繼承來源 SimpleCredentialProvider)
Password
已淘汰.

取得或設定這個憑證的應用程式密碼。

(繼承來源 SimpleCredentialProvider)

方法

名稱 Description
GetAppPasswordAsync(String)
已淘汰.

取得指定 Bot 應用程式識別碼的應用程式密碼。

(繼承來源 SimpleCredentialProvider)
IsAuthenticationDisabledAsync()
已淘汰.

檢查 Bot 驗證是否已停用。

(繼承來源 SimpleCredentialProvider)
IsValidAppIdAsync(String)
已淘汰.

驗證應用程式識別碼。

(繼承來源 SimpleCredentialProvider)

適用於