Thanks for posting your question in the Microsoft Q&A forum.
Your current approach of using Azure B2C for user authentication is a common and reasonable solution. However, if you're considering alternatives, there are a few approaches you could explore:
- Azure Table Storage or Cosmos DB: Instead of using a SQL database, you might consider using Azure Table Storage or Cosmos DB. Both of these services are capable of storing large amounts of semi-structured data and can be easily integrated into your Azure Functions.
- Claims-Based Authorization: B2C supports custom policies, and you can use claims-based authorization to include user-specific information (like the target container) directly in the user's token. Your Azure Function can then extract this claim from the token, eliminating the need to query a separate database.
- Azure Key Vault: If your concerns include security, you might consider using Azure Key Vault to store sensitive information, such as the container information. This can help centralize and secure your secrets.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful