BotFrameworkAuthenticationFactory class
BotFrameworkAuthentication 的工厂,用于封装特定于环境的 Bot Framework 协议身份验证代码。
方法
方法详细信息
create()
为匿名测试方案创建新的 BotFrameworkAuthentication 实例。
static function create(): BotFrameworkAuthentication
返回
一个新的 BotFrameworkAuthentication 实例。
create(string, boolean, string, string, string, string, string, string, string, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)
创建相应的 BotFrameworkAuthentication 实例。
static function create(channelService: string, validateAuthority: boolean, toChannelFromBotLoginUrl: string, toChannelFromBotOAuthScope: string, toBotFromChannelTokenIssuer: string, oAuthUrl: string, toBotFromChannelOpenIdMetadataUrl: string, toBotFromEmulatorOpenIdMetadataUrl: string, callerId: string, credentialFactory: ServiceClientCredentialsFactory, authConfiguration: AuthenticationConfiguration, botFrameworkClientFetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, connectorClientOptions?: ConnectorClientOptions): BotFrameworkAuthentication
参数
- channelService
-
string
通道服务。
- validateAuthority
-
boolean
要使用的验证机构值。
- toChannelFromBotLoginUrl
-
string
从机器人登录 URL 到通道的 。
- toChannelFromBotOAuthScope
-
string
从机器人 oauth 范围到通道的 。
- toBotFromChannelTokenIssuer
-
string
从通道令牌颁发者到机器人的 。
- oAuthUrl
-
string
OAuth URL。
- toBotFromChannelOpenIdMetadataUrl
-
string
从通道打开 ID 元数据 URL 到机器人的 。
- toBotFromEmulatorOpenIdMetadataUrl
-
string
从模拟器打开 ID 元数据 URL 到机器人的 。
- callerId
-
string
在经过身份验证 的活动上设置的 callerId。
- credentialFactory
- ServiceClientCredentialsFactory
用于创建凭据的 ServiceClientCredentialsFactory 。
- authConfiguration
- AuthenticationConfiguration
要使用的 AuthenticationConfiguration 。
- botFrameworkClientFetch
-
(input: RequestInfo, init?: RequestInit) => Promise<Response>
要用于 BotFrameworkClient 的提取。
- connectorClientOptions
- ConnectorClientOptions