BotFrameworkAuthenticationFactory class

Uma fábrica para BotFrameworkAuthentication que encapsula o código de autenticação do Bot Framework Protocol específico do ambiente.

Detalhes do método

create()

Cria uma nova instância BotFrameworkAuthentication para cenários de teste anônimo.

static function create(): BotFrameworkAuthentication

Retornos

Uma nova instância de BotFrameworkAuthentication.

create(string, boolean, string, string, string, string, string, string, string, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)

Cria a instância BotFrameworkAuthentication apropriada.

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

Parâmetros

channelService

string

O Serviço de Canal.

validateAuthority

boolean

O valor de autoridade de validação a ser usado.

toChannelFromBotLoginUrl

string

A url de logon do canal para o canal do bot.

toChannelFromBotOAuthScope

string

O canal para o escopo do bot oauth.

toBotFromChannelTokenIssuer

string

O bot para o emissor do token de canal.

oAuthUrl

string

A URL do OAuth.

toBotFromChannelOpenIdMetadataUrl

string

A url de metadados para bot do Channel Open ID.

toBotFromEmulatorOpenIdMetadataUrl

string

A url de metadados para bot do Emulador Open ID.

callerId

string

O callerId definido em atividades de autenticadas.

credentialFactory
ServiceClientCredentialsFactory

O ServiceClientCredentialsFactory a ser usado para criar credenciais.

authConfiguration
AuthenticationConfiguration

O AuthenticationConfiguration a ser usado.

botFrameworkClientFetch

(input: RequestInfo, init?: RequestInit) => Promise<Response>

A busca a ser usada no BotFrameworkClient.

connectorClientOptions
ConnectorClientOptions

O ConnectorClientOptions a ser usado ao criar ConnectorClients.

Retornos