Microsoft.Identity.Client.Cache.CacheKeyFactory
Responsible for computing:
- external distributed cache key (from request and responses)
- internal cache partition keys (as above, but also from cache items)
These are the same string, but MSAL cannot control if the app developer actually uses distributed caching.
However, MSAL's in-memory cache needs to be partitioned, and this class computes the partition key.
public static string GetAppTokenCacheItemKey(string clientId, string tenantId, string popKid, SortedList<string, string> cacheKeyComponents = null)
public static string GetExternalCacheKeyFromResponse(AuthenticationRequestParameters requestParameters, string homeAccountIdFromResponse)
public static string GetInternalPartitionKeyFromResponse(AuthenticationRequestParameters requestParameters, string homeAccountIdFromResponse)