-
Notifications
You must be signed in to change notification settings - Fork 340
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] "offline_access" "openid" scope causes token cache misses #1548
Comments
|
|
Ok, for point 2 this looks ok, it is expected that some Identity Providers do not return a username by default. For point 1, I think the issue is similar to #1547 Can you try to remove |
Yeah, I think this is the problem. MSAL requests offline_access but ESTS when it responds does not add @jmprieur @henrik-me, @shoatman - I think we can make a small fix for this in MSAL, i.e. if the developer asks for |
I can confirm, removing |
As per internal discussion seems like we have to improve the cache lookup filtering out OIDC scopes? I don't think we should ask people to do anything we should be able to filter correctly and do appropriate cache lookup. |
Yes, I'll propose a PR shortly. |
Which Version of MSAL are you using ?
Microsoft Identity 4.7.1
Platform
Xamarin.Forms on iOS and Android
What authentication flow has the issue?
Other? - AcquireTokenSilent
Is this a new or existing app?
This is a new app.
Repro
Login to AD B2C with email credentials. Create a loop that calls AcquireTokensSilent repeatedly. Notice that a new access token is returned every time, even though it is not close to expiring.
Expected behavior
I expected that the access token would be pulled from cache and not refreshed.
Actual behavior
Access token is refreshed every time, even when it doesn't need to be.
The text was updated successfully, but these errors were encountered: