-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Description
MSAL client type
Confidential
Problem statement
With the introduction of new features such as FMI, more and more access tokens are scoped by additional parameters. This puts pressure on MSAL's static cache.
A simple solution to deal with this is to walk through the static cache and remove expired access tokens. This should only be done when the static cache is used. Something like:
- if there are more than N tokens in the cache (say N=10000)
- lock the cache
- remove expired tokens
- unlock the cache
Alternatively, we can take a dependency (direct or via source code copy) on MemoryCache to replace our static cache. This can easily be done for S2S, where the cache key is known upfront.
Proposed solution
No response
Alternatives
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Committed