From 18ab4e5d1bd31aee678127fb338358376807327e Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Wed, 11 Oct 2023 13:40:05 -0500 Subject: [PATCH] clean sample documentation --- .../84.bot-authentication-certificate/README.md | 10 +++------- .../84.bot-authentication-certificate/Startup.cs | 4 ---- .../wwwroot/default.htm | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/samples/csharp_dotnetcore/84.bot-authentication-certificate/README.md b/samples/csharp_dotnetcore/84.bot-authentication-certificate/README.md index 59e9bf836b..1ec0fd1de4 100644 --- a/samples/csharp_dotnetcore/84.bot-authentication-certificate/README.md +++ b/samples/csharp_dotnetcore/84.bot-authentication-certificate/README.md @@ -1,7 +1,5 @@ # Authentication Bot using SSL/TLS certificates -Bot Framework v4 bot authentication sample - Bot Framework v4 bot authentication using Certificate This bot has been created using [Bot Framework](https://dev.botframework.com/), is shows how to use the bot authentication capabilities of Azure Bot Service. In this sample, we use a local or KeyVault certificate to create the Bot Framework Authentication. @@ -38,7 +36,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com/), - Run the bot from a terminal or from Visual Studio: - A) From a terminal, navigate to `samples/csharp_dotnetcore/18.bot-authentication` + A) From a terminal, navigate to `samples/csharp_dotnetcore/84.bot-authentication-certificate` ```bash # run the bot @@ -49,8 +47,8 @@ This bot has been created using [Bot Framework](https://dev.botframework.com/), - Launch Visual Studio - File -> Open -> Project/Solution - - Navigate to `samples/csharp_dotnetcore/18.bot-authentication` folder - - Select `AuthenticationBot.csproj` file + - Navigate to `samples/csharp_dotnetcore/84.bot-authentication-certificate` folder + - Select `AuthCertificateBot.csproj` file - Press `F5` to run the project ## Testing the bot using Bot Framework Emulator @@ -118,13 +116,11 @@ To learn more about deploying a bot to Azure, see [Deploy your bot to Azure](htt - [Bot Framework Documentation](https://docs.botframework.com) - [Bot Basics](https://docs.microsoft.com/azure/bot-service/bot-builder-basics?view=azure-bot-service-4.0) - [Azure Portal](https://portal.azure.com) -- [Add Authentication to Your Bot Via Azure Bot Service](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=csharp) - [Activity processing](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-concept-activity-processing?view=azure-bot-service-4.0) - [Azure Bot Service Introduction](https://docs.microsoft.com/azure/bot-service/bot-service-overview-introduction?view=azure-bot-service-4.0) - [Azure Bot Service Documentation](https://docs.microsoft.com/azure/bot-service/?view=azure-bot-service-4.0) - [.NET Core CLI tools](https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x) - [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest) - [Azure Portal](https://portal.azure.com) -- [Language Understanding using LUIS](https://docs.microsoft.com/en-us/azure/cognitive-services/luis/) - [Channels and Bot Connector Service](https://docs.microsoft.com/en-us/azure/bot-service/bot-concepts?view=azure-bot-service-4.0) - [SSL/TLS certificates](https://www.digicert.com/tls-ssl/tls-ssl-certificates) diff --git a/samples/csharp_dotnetcore/84.bot-authentication-certificate/Startup.cs b/samples/csharp_dotnetcore/84.bot-authentication-certificate/Startup.cs index d68bde218c..d142ed94da 100644 --- a/samples/csharp_dotnetcore/84.bot-authentication-certificate/Startup.cs +++ b/samples/csharp_dotnetcore/84.bot-authentication-certificate/Startup.cs @@ -2,8 +2,6 @@ // Licensed under the MIT License. using System; -using System.Runtime.ConstrainedExecution; -using System.Security.Cryptography.X509Certificates; using Azure.Identity; using Azure.Security.KeyVault.Certificates; using Microsoft.AspNetCore.Builder; @@ -14,7 +12,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using static System.Net.WebRequestMethods; namespace Microsoft.BotBuilderSamples { @@ -67,7 +64,6 @@ public void ConfigureServices(IServiceCollection services) // Create the Conversation state. (Used by the Dialog system itself.) services.AddSingleton(); - // Create the bot as a transient. In this case the ASP Controller is expecting an IBot. services.AddTransient(); } diff --git a/samples/csharp_dotnetcore/84.bot-authentication-certificate/wwwroot/default.htm b/samples/csharp_dotnetcore/84.bot-authentication-certificate/wwwroot/default.htm index 7dec478f9f..5f3ef3eada 100644 --- a/samples/csharp_dotnetcore/84.bot-authentication-certificate/wwwroot/default.htm +++ b/samples/csharp_dotnetcore/84.bot-authentication-certificate/wwwroot/default.htm @@ -4,7 +4,7 @@ - Bot Authentication Sample + Bot Authentication Using Certificates Sample