-
Notifications
You must be signed in to change notification settings - Fork 223
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] Caching by MethodInfo will return same cache for different distributed cache configurations #1447
Comments
Updating the thread here: so this test is the issue. It's supposed to check that we use the same cca instance, but when checking the Distributed cache in the last line # 45, instead of the token source being cache, it's identity provider. This was happening with the Delegate & object suggestions from you repo and got the same result. For this #1390 cc: @rymeskar |
Closing, as I believe, we concluded this was a non-repro |
I think this is still a bug @jmprieur . I created a more relevant repro.
|
Reopening as per feedback from Karel. |
@pmaytak - can you also take a look at this please? |
Which version of Microsoft Identity Web are you using?
Latest master
Where is the issue?
In the helper method for applications that would like to use Id.Web and MSAL caching and do not use DI, there is a cache in order to remove redundant initialization.
This cache however has a bug of only caching by MethodInfo. Relying on equality or difference of the produced MethodInfo is problematic. For example, I showcase that same pattern as is used for Distributed Cache registration results in not adding newly configured caches. There will always be just key for the distributed cache. Here's the full repro.
The text was updated successfully, but these errors were encountered: