BotFrameworkAuthenticationFactory class

Pabrik untuk BotFrameworkAuthentication yang merangkum kode autentikasi Protokol Kerangka Kerja Bot spesifik lingkungan.

Metode

create()

Membuat instans botFrameworkAuthentication baru untuk skenario pengujian anonim.

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

Membuat instans BotFrameworkAuthentication yang sesuai.

Detail Metode

create()

Membuat instans botFrameworkAuthentication baru untuk skenario pengujian anonim.

static function create(): BotFrameworkAuthentication

Mengembalikan

Instans BotFrameworkAuthentication baru.

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

Membuat instans BotFrameworkAuthentication yang sesuai.

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

Parameter

channelService

string

Layanan Saluran.

validateAuthority

boolean

Nilai otoritas validasi untuk digunakan.

toChannelFromBotLoginUrl

string

url masuk ke Saluran dari bot.

toChannelFromBotOAuthScope

string

ke Saluran dari cakupan oauth bot.

toBotFromChannelTokenIssuer

string

Ke bot dari Penerbit Token Saluran.

oAuthUrl

string

Url OAuth.

toBotFromChannelOpenIdMetadataUrl

string

ke bot dari url Metadata Id Terbuka Saluran.

toBotFromEmulatorOpenIdMetadataUrl

string

Ke bot dari url Metadata Emulator Open Id.

callerId

string

CallerId diatur pada aktivitas yang diautentikasi.

credentialFactory
ServiceClientCredentialsFactory

ServiceClientCredentialsFactory digunakan untuk membuat kredensial.

authConfiguration
AuthenticationConfiguration

AuthenticationConfiguration yang akan digunakan.

botFrameworkClientFetch

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

Pengambilan untuk digunakan di BotFrameworkClient.

connectorClientOptions
ConnectorClientOptions

ConnectorClientOptions untuk digunakan saat membuat ConnectorClients.

Mengembalikan