BotFrameworkAuthenticationFactory.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create() |
Creates the a BotFrameworkAuthentication instance for anonymous testing scenarios. |
Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger) |
Creates the appropriate BotFrameworkAuthentication instance. |
Create()
Creates the a BotFrameworkAuthentication instance for anonymous testing scenarios.
public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create ();
static member Create : unit -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create () As BotFrameworkAuthentication
Returns
A new BotFrameworkAuthentication instance.
Applies to
Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)
Creates the appropriate BotFrameworkAuthentication instance.
public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create (string channelService, bool validateAuthority, string toChannelFromBotLoginUrl, string toChannelFromBotOAuthScope, string toBotFromChannelTokenIssuer, string oAuthUrl, string toBotFromChannelOpenIdMetadataUrl, string toBotFromEmulatorOpenIdMetadataUrl, string callerId, Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory credentialFactory, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfiguration, System.Net.Http.IHttpClientFactory httpClientFactory, Microsoft.Extensions.Logging.ILogger logger);
static member Create : string * bool * string * string * string * string * string * string * string * Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * System.Net.Http.IHttpClientFactory * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create (channelService As String, validateAuthority As Boolean, toChannelFromBotLoginUrl As String, toChannelFromBotOAuthScope As String, toBotFromChannelTokenIssuer As String, oAuthUrl As String, toBotFromChannelOpenIdMetadataUrl As String, toBotFromEmulatorOpenIdMetadataUrl As String, callerId As String, credentialFactory As ServiceClientCredentialsFactory, authConfiguration As AuthenticationConfiguration, httpClientFactory As IHttpClientFactory, logger As ILogger) As BotFrameworkAuthentication
Parameters
- channelService
- String
The Channel Service.
- validateAuthority
- Boolean
The validate authority value to use.
- toChannelFromBotLoginUrl
- String
The to Channel from bot login url.
- toChannelFromBotOAuthScope
- String
The to Channel from bot oauth scope.
- toBotFromChannelTokenIssuer
- String
The to bot from Channel Token Issuer.
- oAuthUrl
- String
The oAuth url.
- toBotFromChannelOpenIdMetadataUrl
- String
The to bot from Channel Open Id Metadata url.
- toBotFromEmulatorOpenIdMetadataUrl
- String
The to bot from Emulator Open Id Metadata url.
- callerId
- String
The Microsoft app password.
- credentialFactory
- ServiceClientCredentialsFactory
The ServiceClientCredentialsFactory to use to create credentials.
- authConfiguration
- AuthenticationConfiguration
The AuthenticationConfiguration to use.
- httpClientFactory
- IHttpClientFactory
The IHttpClientFactory to use.
Returns
A new BotFrameworkAuthentication instance.