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
属性

注解

这将使用 的键填充应用设置条目中的 ,Password并使用 的键MicrosoftAppPasswordKeyMicrosoftAppIdKey填充AppId应用设置中的 。

注意:如果键不存在, null 将使用值。

构造函数

ConfigurationCredentialProvider()
已过时.

初始化 ConfigurationCredentialProvider 类的新实例。

ConfigurationCredentialProvider(IConfiguration)
已过时.

初始化 ConfigurationCredentialProvider 类的新实例。

属性

AppId
已过时.

获取或设置此凭据的应用 ID。

(继承自 SimpleCredentialProvider)
Password
已过时.

获取或设置此凭据的应用密码。

(继承自 SimpleCredentialProvider)

方法

GetAppPasswordAsync(String)
已过时.

获取给定机器人应用 ID 的应用密码。

(继承自 SimpleCredentialProvider)
IsAuthenticationDisabledAsync()
已过时.

检查是否禁用了机器人身份验证。

(继承自 SimpleCredentialProvider)
IsValidAppIdAsync(String)
已过时.

验证应用 ID。

(继承自 SimpleCredentialProvider)

适用于