-
Notifications
You must be signed in to change notification settings - Fork 210
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] In .Net framework, when recreating the CCA each time one wants to acquire a token, the cache is not hit #1390
Comments
jmprieur
changed the title
[Bug]
[Bug] In .Net framework, when recreating the CCA each time one wants to acquire a token, the cache is not hit
Aug 17, 2021
Merged
Included in 1.16 release |
bgavrilMS
added a commit
that referenced
this issue
Aug 20, 2021
jennyf19
pushed a commit
that referenced
this issue
Aug 22, 2021
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version of Microsoft Identity Web are you using?
1.15.1
Where is the issue?
The issue only affects the TokenCache confidential client extensions used to add token cache support in ASP.net MVC, or .NET Core, but without fully using Id.Web. It only happens when you re create the confidential client application each time you want to get a token
Repro
With the in memory and distributed in memory cache, the cache is not hit, because a new InMemory cache is instantiated each time.
The following code
Expected behavior
The console app should display:
Actual behavior
The console app actually displays:
Additional context / logs / screenshots
We instantiate a ServiceProvider each time
The text was updated successfully, but these errors were encountered: