Dela via


BotFrameworkAuthenticationFactory.Create Metod

Definition

Överlagringar

Create()

Skapar en BotFrameworkAuthentication instans för anonyma testscenarier.

Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)

Skapar lämplig BotFrameworkAuthentication instans.

Create()

Skapar en BotFrameworkAuthentication instans för anonyma testscenarier.

public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create();
static member Create : unit -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create () As BotFrameworkAuthentication

Returer

En ny BotFrameworkAuthentication instans.

Gäller för

Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)

Skapar lämplig BotFrameworkAuthentication instans.

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

Parametrar

channelService
String

Kanaltjänsten.

validateAuthority
Boolean

Verifiera auktoritetsvärdet som ska användas.

toChannelFromBotLoginUrl
String

Till kanal från url:en för robotinloggning.

toChannelFromBotOAuthScope
String

Till-kanalen från robotens oauth-omfång.

toBotFromChannelTokenIssuer
String

Till-roboten från Utfärdare av kanaltoken.

oAuthUrl
String

OAuth-URL:en.

toBotFromChannelOpenIdMetadataUrl
String

Till-roboten från URL för öppna ID-metadata för kanalen.

toBotFromEmulatorOpenIdMetadataUrl
String

Till-roboten från URL för öppna ID-metadata för emulatorn.

callerId
String

Lösenordet för Microsoft-appen.

credentialFactory
ServiceClientCredentialsFactory

Som ServiceClientCredentialsFactory ska användas för att skapa autentiseringsuppgifter.

authConfiguration
AuthenticationConfiguration

Som AuthenticationConfiguration ska användas.

httpClientFactory
IHttpClientFactory

Som IHttpClientFactory ska användas.

logger
ILogger

Som ILogger ska användas.

Returer

En ny BotFrameworkAuthentication instans.

Gäller för