microsoft / botbuilder-python

The Microsoft Bot Framework provides what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/sms to Skype, Slack, Office 365 mail and other popular services.
http://botframework.com
MIT License
672 stars 271 forks source link

use managed identity in Python bot #2107

Closed frankqianms closed 4 weeks ago

frankqianms commented 1 month ago

Use this query to search for the most popular feature requests.

Is your feature request related to a problem? Please describe. According to this doc, the Python version of the Bot Framework SDK supports multi-tenant and single-tenant bots. Since Teams-ai depends on Bot Framework SDK, Python bots here do not support managed identity either.

Describe the solution you'd like Please let Python bots support managed identity.

tracyboehrer commented 1 month ago

This is not possible until the MSAL package for Python supports it.

frankqianms commented 1 month ago

Got it! Thank you.

jannikmi commented 3 weeks ago

Why has this been closed? I think it is a valid and important feature that bots (and all other cloud ressource types) support managed identities. This issue is still relevant even if it cannot be resolved at the moment.

Without a managed identity the way I understand it, one has to use an App Registration with secrets that expire at least after 2 years. This is more than impractical.

I believe this is a related PR in the MSAL: https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/480

tracyboehrer commented 3 weeks ago

Bot Framework SDK didn't close it. But closed or open doesn't change our intent to add this when available.