microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
350 stars 144 forks source link

[SECURITY] AOAI OAuth Sample Authentication #1665

Closed aacebo closed 3 weeks ago

aacebo commented 1 month ago

update samples that use AOAI to use OAuth to attain an api key.

wangyuantao commented 1 month ago

I believe not just sample code update, but also Teams AI lib core need update to support DefaultAzureCredential. You are the expert how to implement it. The requirement is: using the same code, for developer to debug locally, the app uses developer's user identity, for deployed app service, the app uses app services's system assigned managed identity. infra/bicep of the sample code also need to update so the managed identity will be enabled and role assignments will be added during the azure resource provision/deploy