BotFrameworkAuthenticationFactory class
Factory per BotFrameworkAuthentication che incapsula il codice di autenticazione del protocollo Bot Framework specifico dell'ambiente.
Metodi
Dettagli metodo
create()
Crea una nuova istanza BotFrameworkAuthentication per scenari di test anonimi.
static function create(): BotFrameworkAuthentication
Restituisce
Nuova istanza BotFrameworkAuthentication.
create(string, boolean, string, string, string, string, string, string, string, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)
Crea l'istanza BotFrameworkAuthentication appropriata.
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
Parametri
- channelService
-
string
Servizio canale.
- validateAuthority
-
boolean
Valore dell'autorità di convalida da usare.
- toChannelFromBotLoginUrl
-
string
Da canale all'URL di accesso del bot.
- toChannelFromBotOAuthScope
-
string
Da canale a dall'ambito oauth del bot.
- toBotFromChannelTokenIssuer
-
string
Da bot all'autorità emittente di token del canale.
- oAuthUrl
-
string
URL OAuth.
- toBotFromChannelOpenIdMetadataUrl
-
string
Da bot all'URL dei metadati open id canale.
- toBotFromEmulatorOpenIdMetadataUrl
-
string
Da bot all'URL dei metadati aperti dell'emulatore.
- callerId
-
string
CallerId impostato su su attività autenticate.
- credentialFactory
- ServiceClientCredentialsFactory
ServiceClientCredentialsFactory da usare per creare le credenziali.
- authConfiguration
- AuthenticationConfiguration
AuthenticationConfiguration da usare.
- botFrameworkClientFetch
-
(input: RequestInfo, init?: RequestInit) => Promise<Response>
Recupero da usare in BotFrameworkClient.
- connectorClientOptions
- ConnectorClientOptions
Il ConnectorClientOptions da usare durante la creazione di ConnectorClients.