You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jennyf19
changed the title
[Feature Request] Use an actual MemoryCache with eviction when instructed
[Feature Request- Breaking change] Use an actual MemoryCache with eviction when instructed
Feb 10, 2025
Today, Id.Web configures MSAL to use
SharedMemoryCache
- a static cache. This is fast, but no eviction.With the introduction of new concepts like FMI, which increase the number of tokens, a cache without eviction becomes problematic.
Design
Id.Web configured the static cache here:
microsoft-identity-web/src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisition.cs
Line 796 in 2b8fbf0
Instead, we should actually use cache adapter (i.e. delete the condition here
microsoft-identity-web/src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisition.cs
Line 849 in 2b8fbf0
The text was updated successfully, but these errors were encountered: