microsoft / teams-ai

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

Extend `TeamsSSOTokenExchangeMiddleware` with support for Azure Blob Storage #774

Open garrytrinder opened 1 year ago

garrytrinder commented 1 year ago

Discussed with @singhk97

Write directly to storage article suggests three ways to write to storage:

  1. MemoryStorage
  2. Azure Cosmos DB
  3. Azure Blob Storage

Add code to enable SSO in your bot app article provides guidance and recommends that developers use the TeamsSSOTokenExchangeMiddleware class to to handle deduplication in the token exchange step.

The TeamsSSOTokenExchangeMiddleware supports only Azure Cosmos DB and MemoryStorage, so we cannot use Azure Blob Storage which could be emulated easily in the local development loop using Azurite and would provide a lightweight alternative to Azure Cosmos DB. See

singhk97 commented 1 year ago

Added to backlog. Will come back to this after GA.