Skip to content

Commit

Permalink
Update update-bot-me-app-to-use-certificate-or-msi-for-authentication.md
Browse files Browse the repository at this point in the history
  • Loading branch information
v-shalinir committed Sep 17, 2024
1 parent ac24728 commit 5101d2f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To use a certificate for bot authentication:

## Update the bot app code

Follow the steps to update the bot app code:
Follow the steps to update the bot app code:

1. Open your bot app project in Visual Studio or Visual Studio Code.
1. Update your code.
Expand Down Expand Up @@ -90,6 +90,7 @@ Follow the steps to update the bot app code:
```csharp
builder.Services.AddSingleton<ServiceClientCredentialsFactory>((e) => new CertificateServiceClientCredentialsFactory("{your certificate}", "{your entra id}"));
```

---

1. Ensure you test your bot to confirm the operation aligns with the updated authentication.
Expand Down Expand Up @@ -175,7 +176,8 @@ To create a new **Azure Bot** service with MSI type, follow these steps:
To update the bot app code for MSI, follow these steps:
1. Update your code and deploy.
1. Open your bot app project in Visual Studio or Visual Studio Code.
1. Update your code.
# [JavaScript](#tab/js2)
Expand Down

0 comments on commit 5101d2f

Please sign in to comment.