microsoft / teams-ai

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

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

Open garrytrinder opened 11 months ago

garrytrinder commented 11 months 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 10 months ago

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