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
@@ -24,7 +24,7 @@ After Microsoft Authentication Library (MSAL) [acquires a token](msal-acquire-ca
24
24
25
25
The recommendation is:
26
26
- When you're writing a desktop application, use the cross-platform token cache as explained in [Desktop apps](msal-net-token-cache-serialization.md?tabs=desktop).
27
-
- Do nothing for [mobile and UWP apps](msal-net-token-cache-serialization.md?tabs=mobile). MSAL.NET provides secure storage for the cache.
27
+
- Do nothing for [mobile and Universal Windows Platform (UWP) apps](msal-net-token-cache-serialization.md?tabs=mobile). MSAL.NET provides secure storage for the cache.
28
28
- In ASP.NET Core [web apps](scenario-web-app-call-api-overview.md) and [web APIs](scenario-web-api-call-api-overview.md), use [Microsoft.Identity.Web](microsoft-identity-web.md) as a higher-level API. You'll get token caches and much more. See [ASP.NET Core web apps and web APIs](msal-net-token-cache-serialization.md?tabs=aspnetcore).
29
29
- In the other cases of [web apps](scenario-web-app-call-api-overview.md) and [web APIs](scenario-web-api-call-api-overview.md):
30
30
- If you request tokens for users in a production application, use a [distributed token cache](msal-net-token-cache-serialization.md?tabs=aspnet#distributed-caches) (Redis, SQL Server, Azure Cosmos DB, distributed memory). Use token cache serializers available from [Microsoft.Identity.Web.TokenCache](https://www.nuget.org/packages/Microsoft.Identity.Web.TokenCache/).
@@ -252,7 +252,7 @@ You can specify that you don't want to have any token cache serialization and in
252
252
253
253
`WithCacheOptions(CacheOptions.EnableSharedCacheOptions)` makestheinternalMSALtokencachesharedbetweenMSALclientapplicationinstances. Sharingatokencacheisfasterthanusinganytokencacheserialization, buttheinternalin-memorytokencachedoesn't have eviction policies. Existing tokens will be refreshed in place, but fetching tokens for different users, tenants, and resources makes the cache grow accordingly.
254
254
255
-
Ifyouusethisapproachandhavealargenumberofusersortenants, besuretomonitorthememoryfootprint. Ifthememoryfootprintbecomesaproblem, considerenablingtokencacheserialization, whichmightreducetheinternalcachesize. Alsobeawarethatcurrently, youcan't use shared cache and cache serialization together.
255
+
Ifyouusethisapproachandhavealargenumberofusersortenants, besuretomonitorthememoryfootprint. Ifthememoryfootprintbecomesaproblem, considerenablingtokencacheserialization, whichmightreducetheinternalcachesize. Currently, youcan't use shared cache and cache serialization together.
0 commit comments