-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
acquireTokenSilent : ERROR InteractionRequiredAuthError: no_tokens_found: No refresh token found in the cache. Please sign-in #7303
Comments
@Robbie-Microsoft @bgavrilMS could you help here? We are hitting the same issue. (not sure if the root causes are the same or different) I wonder if it could be related to a recent code change or something on msal side? |
In our setup, We have a nodejs app and we use InteractiveBrowserCredential from @azure/identity along with @azure/identity-cache-persistence. We don't implement any custom cache plugin in our code. Here is my call stack (it might be irrelevant since it's bundled but it might help with the class/fn names.)
|
InteractiveBrowserCredential is a public client scenario and @Robbie-Microsoft and I don't own this scenario. Updating the issue. CC @peterzenz |
Why was this clsoe? |
I'm sickened by the awful developer experience in dealing with Microsoft and Azure. |
@AdzeB - how do you get the first set of tokens? Do you use AcquireTokenByAuthCode? |
Hi @bgavrilMS I used getAuthCodeUrl
|
Folks, I'm not able to reproduce this error. Via our msal-node Silent Flow sample, I plugged in my own clientId and used a clientCertificate (thumbprint + private key) instead of clientSecret on lines 236-240 in index.js. I used msal-node v2.13.1 like specified above. |
It would be helpful to a have a minimal bug repro to work on. |
Core Library MSAL Node (@azure/msal-node) Core Library Version Wrapper Library Wrapper Library Version Public or Confidential Client? Description Error Message
MSAL Logs
MSAL Configuration Reproduction Steps
Expected Behavior Identity Provider |
Hi, any updates/fixes on the issue above? |
Sorry, the bot keeps closing it this. |
Folks, we have not been able to reproduce this issue. Can someone please provide a minimal repo? I can see in the original post a custom cache, it's not enough to repro. Could someone pls create a small sample that reproduces the issue? |
@bgavrilMS How you like the sample to work, would you like it with supabase etc set up…you just need to enter the keys? |
We can provision our own Entra ID app, redirect URI, secret etc. |
@bgavrilMS Apologies for the late reply but you can use this project to reproduce the error |
Yu gt a minus ff me wpn, thee rsmblnce, Lm/ Vk/Wp. |
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
2.13.1
Wrapper Library
Not Applicable
Wrapper Library Version
N/A
Public or Confidential Client?
Public
Description
We are calling
acquireTokenSilent
to get a new token without needing the user to give permissions again, but the function throws the erroracquireTokenSilent : ERROR InteractionRequiredAuthError: no_tokens_found: No refresh token found in the cache. Please sign-in
Error Message
Error silently: InteractionRequiredAuthError: no_tokens_found: No refresh token found in the cache. Please sign-in.
MSAL Logs
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
["openid","profile","Calendars.Read","Calendars.ReadWrite", "email","user.read","offline_access"]
Expected Behavior
we should be able to get a new token.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
None (Server)
Regression
N/A
Source
External (Customer)
The text was updated successfully, but these errors were encountered: