ConfigurationServiceClientCredentialFactory 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
憑證提供者用 IConfiguration 來查詢應用程式的憑證。
public class ConfigurationServiceClientCredentialFactory : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory
type ConfigurationServiceClientCredentialFactory = class
inherit ServiceClientCredentialsFactory
Public Class ConfigurationServiceClientCredentialFactory
Inherits ServiceClientCredentialsFactory
- 繼承
備註
此時將 from a configuration entry 填入 AppId 的鍵值,且 Password from a configuration entry 的鍵MicrosoftAppIdKeyMicrosoftAppPasswordKey值為 。
注意:若鍵不存在,將使用一個 null 值。
建構函式
| 名稱 | Description |
|---|---|
| ConfigurationServiceClientCredentialFactory(IConfiguration, HttpClient, ILogger) |
初始化 ConfigurationServiceClientCredentialFactory 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| CreateCredentialsAsync(String, String, String, Boolean, CancellationToken) |
用來建立 ServiceClientCredentials 的 Factory 方法。 |
| IsAuthenticationDisabledAsync(CancellationToken) |
檢查 Bot 驗證是否已停用。 |
| IsValidAppIdAsync(String, CancellationToken) |
驗證應用程式識別碼。 |