ConfigurationCredentialProvider 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
- 继承
- 属性
注解
这会将 AppId “from a app”设置条目填充为 的 MicrosoftAppIdKey 密钥,而 Password from a app 设置中填充的密钥 MicrosoftAppPasswordKey。
注意:如果没有这些密钥,将使用一个 null 值。
构造函数
| 名称 | 说明 |
|---|---|
| ConfigurationCredentialProvider() |
已过时.
初始化 ConfigurationCredentialProvider 类的新实例。 |
| ConfigurationCredentialProvider(IConfiguration) |
已过时.
初始化 ConfigurationCredentialProvider 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| AppId |
已过时.
获取或设置该凭证的应用ID。 (继承自 SimpleCredentialProvider) |
| Password |
已过时.
获取或设置该凭证的应用密码。 (继承自 SimpleCredentialProvider) |
方法
| 名称 | 说明 |
|---|---|
| GetAppPasswordAsync(String) |
已过时.
获取给定机器人应用 ID 的应用密码。 (继承自 SimpleCredentialProvider) |
| IsAuthenticationDisabledAsync() |
已过时.
检查是否禁用机器人身份验证。 (继承自 SimpleCredentialProvider) |
| IsValidAppIdAsync(String) |
已过时.
验证应用 ID。 (继承自 SimpleCredentialProvider) |