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
Why?
Even if the cache key suggested by MSAL.NET was carefully chosen based on data, some partners want to be able to express the key used to serialize and deserialize the cache (for instance Substrate)
What?
In MsalAbstractTokenCacheProvider:
add a virtual method GetSuggestedCacheKey taking the TokenCacheNotificationArgs. By default this method will return the SuggestedCacheKey member of the token cache notification arg
replace all the arg.SuggestedCacheKey by the result to a call to the new method.
add a unit test (override the method in MsalTestTokenCacheProvider?)
document what partners will need to extend this class, or the MsalDistributedTokenCacheAdapter class, and override the singleton implementing IMsalTokenCacheProvider (see DistributedTokenCacheAdapterExtension)
The text was updated successfully, but these errors were encountered:
Why?
Even if the cache key suggested by MSAL.NET was carefully chosen based on data, some partners want to be able to express the key used to serialize and deserialize the cache (for instance Substrate)
What?
GetSuggestedCacheKey
taking theTokenCacheNotificationArgs
. By default this method will return the SuggestedCacheKey member of the token cache notification argMsalDistributedTokenCacheAdapter
class, and override the singleton implementingIMsalTokenCacheProvider
(see DistributedTokenCacheAdapterExtension)The text was updated successfully, but these errors were encountered: