OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
921 stars 733 forks source link

bot-teams-authentication for user assigned managed identity bot #1245

Open emahama opened 3 months ago

emahama commented 3 months ago

I am trying to reproduce the example in bot-teams-authentication example. However, I want to use azure bot with user assigned managed identity bot.

The challenge I am facing is adding OAuth Connection Settings to the bot. From the snapshot below, it is observed that Client secret is a mandatory field. However, azure bot with user managed identity does not use secret.

I created an application principal in Entra ID and I used it to populate the OAuth2Connection but I am trying to move away of secrets. That is why I decided to use the user assigned managed identity. Is there a way to add OAuth Connection setting without having to created principal in Entra ID that uses secret?

Can you provide some guidance on adding OAuth connection for user assigned managed identity bot? Thank you.

image

Prasad-MSFT commented 3 months ago

Hi @emahama - Thanks for raising your issue. We will check this at our end and will update you accordingly.

Prasad-MSFT commented 3 months ago

@emahama - We are checking this with engineering team whether or not there is way to add OAuth Connection setting without having to create principal in Entra ID that uses secret, and we will inform you once we hear from them.

Thanks!