This repository was archived by the owner on Jan 5, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
samples/csharp_dotnetcore/86.bot-authentication-fic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ This bot has been created using [Bot Framework](https://dev.botframework.com/),
66
77This bot uses ` FederatedServiceClientCredentialsFactory ` which is registered in Startup.cs.
88
9+ ``` csharp
10+ // Create the Federated Service Client Credentials to be used as the ServiceClientCredentials for the Bot Framework SDK.
11+ services .AddSingleton <ServiceClientCredentialsFactory >(
12+ new FederatedServiceClientCredentialsFactory (
13+ Configuration [" MicrosoftAppId" ],
14+ Configuration [" MicrosoftAppClientId" ],
15+ Configuration [" MicrosoftAppTenantId" ]));
16+ ```
17+
918## Prerequisites
1019
1120- [ .NET SDK] ( https://dotnet.microsoft.com/download ) version 8.0
@@ -68,7 +77,7 @@ The easiest way to deploy the bot to the App Service for testing is using the Vi
6877- Right clin the project and select ** Publish**
6978- Click ** + New Profile**
7079- ** Azure** -> ** Azure App Service (Windows)**
71- - Select the existing App Service, the click ** Finish**
80+ - Select the existing App Service, then click ** Finish**
7281- Click the ** Publish** button.
7382
7483## Further reading
You can’t perform that action at this time.
0 commit comments