ConfigurationBotFrameworkAuthentication 类

定义

BotFrameworkAuthentication根据配置创建实例。

public class ConfigurationBotFrameworkAuthentication : Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
type ConfigurationBotFrameworkAuthentication = class
    inherit BotFrameworkAuthentication
Public Class ConfigurationBotFrameworkAuthentication
Inherits BotFrameworkAuthentication
继承
ConfigurationBotFrameworkAuthentication

构造函数

ConfigurationBotFrameworkAuthentication(IConfiguration, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)

初始化 ConfigurationBotFrameworkAuthentication 类的新实例。

方法

AuthenticateChannelRequestAsync(String, CancellationToken)

对 Skills 的 Bot Framework 协议请求进行身份验证。

AuthenticateRequestAsync(Activity, String, CancellationToken)

验证 Bot Framework 协议请求。

AuthenticateStreamingRequestAsync(String, String, CancellationToken)

验证 Bot Framework 协议请求。

CreateBotFrameworkClient()

BotFrameworkClient创建用于调用 Skills 的 。

CreateConnectorFactory(ClaimsIdentity)

创建一个 ConnectorFactory ,用于创建 IConnectorClient 使用此特定云环境中的凭据的 。

CreateUserTokenClientAsync(ClaimsIdentity, CancellationToken)

创建相应的 UserTokenClient 实例。

GenerateCallerIdAsync(ServiceClientCredentialsFactory, ClaimsIdentity, String, CancellationToken)

生成相应的 callerId 以写入活动,这可能为 null。

(继承自 BotFrameworkAuthentication)
GetOriginatingAudience()

从 Bot OAuth 范围获取原始受众。

适用于