语言

ICredentialProvider 接口

定义

注意

Use ConfigurationBotFrameworkAuthentication instead to configure credentials.

CredentialProvider 接口。 此接口允许机器人提供自己的实现,即什么是有效的 appId 和密码。 在多租户机器人的情况下,机器人可能需要调用服务来确定特定 appid/密码对是否有效,这非常有用。

对于单租户机器人(绝大多数),简单的静态提供程序就足够了。

[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
派生
属性

方法

名称 说明
GetAppPasswordAsync(String)
已过时.

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

IsAuthenticationDisabledAsync()
已过时.

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

IsValidAppIdAsync(String)
已过时.

验证应用 ID。

适用于