Gibe / Umbraco.Community.AzureSSO

Azure AD SSO module for Umbraco
MIT License
9 stars 8 forks source link

Error about In Memory Cache #17

Closed lumimario closed 9 months ago

lumimario commented 11 months ago

We are getting the following error on the Umbraco logs.

False MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.19 Microsoft Windows 10.0.14393 [2023-08-24 00:18:40Z - 4fac3449-31f8-438d-a1f4-bdfce27d2d57] Only in-memory caching is used. The cache is not persisted and will be lost if the machine is restarted. It also does not scale for a web app or web API, where the number of users can grow large. In production, web apps and web APIs should use distributed caching like Redis. See https://aka.ms/msal-net-cca-token-cache-serialization

On MicrosoftAccountAuthenticationExtensions:38 we can see that it's in fact the login is configured to cache the token in memory. I can't see a way to overriding that.