Azure AD B2C SQL Token Cache

Aidan 1 Reputation point

I have set up a .Net core web application and web API and secured them using Azure AD B2C based on the following sample -

This is great for initial development but uses a static in memory cache so whenever the web app is restarted the token cache is cleared. I would like to implement SQL token caching using IDistributedCache but can only find samples that are Azure AD (not B2C) specific or out of date and using previous versions of (I am currently using v3).

Does anyone know of any examples that provide details for implementing a SQL token cache with Azure AD B2C?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,185 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 35,806 Reputation points Microsoft Employee

    There is no example specifically for this that I am aware of.

    I believe this exists for regular AD but not for B2C.

    I would highly recommend making a feature request in User Voice, where the product team can respond directly to you.

    I am happy to upvote any request that you make if you link it here.