New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] CacheSynchronizationEnabled flag default is inconsistent #4268
Comments
Yes, we might be able to do that in Id.Web. |
Nit clarification here - CCA is singleton and token cache serialization is enabled. So the effects of changing default from false to true:
We don't have telemetry how often 2 is used in prod. I also wouldn't obsolete this in case people want to set the flag to false in scenario 2 or 1. I would just make sure the method comment is clear that defaults should be used. |
So the flag is consistent - it's false by default. Lines 103 to 109 in 80c848b
Lines 130 to 131 in 80c848b
Although it is set to true in app config; it's actually overridden in the CcaBuilder.Create: Line 116 in 80c848b
Line 86 in 80c848b
|
MSAL 4.54.1
Expected
CacheSynchronizationEnabled should be
true
by default. It should have negligible impact over when CCA is constructed on a request by request basis. But when CCA is singleton, cache correctness cannot be achieved without this flag set to true (i.e. without locking).(It should also be hidden / soft deprecated API, as it is too low level)
Actual
If using
ApplicationOptions
when constructing the CCA object, theCacheSynchronizationEnabled
is set tofalse
if not explicitly declared.If not using
ApplicationsOptions
, theCacheSynchronizationEnabled
is set totrue
The text was updated successfully, but these errors were encountered: