ICredentialProvider 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use ConfigurationBotFrameworkAuthentication instead to configure credentials.
CredentialProvider 介面。 此介面可讓 Bot 自行實作什麼是有效 appId 和密碼, 在多租使用者 Bot 的情況下,Bot 可能需要呼叫服務,以判斷特定 appid/密碼組是否有效,這非常有用。
對於單一租使用者 Bot(絕大多數),簡單的靜態提供者就已足夠。
[System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)]
public interface ICredentialProvider
[<System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)>]
type ICredentialProvider = interface
Public Interface ICredentialProvider
- 衍生
- 屬性
方法
| 名稱 | Description |
|---|---|
| GetAppPasswordAsync(String) |
已淘汰.
取得指定 Bot 應用程式識別碼的應用程式密碼。 |
| IsAuthenticationDisabledAsync() |
已淘汰.
檢查 Bot 驗證是否已停用。 |
| IsValidAppIdAsync(String) |
已淘汰.
驗證應用程式識別碼。 |