Comments (17)
Unfortunately this has been an issue with ADAL for a while. We're onboarding support for Microsoft's new authentication library: MSAL (tracking in #203) which will likely fix this issue. And if not - at least MSAL is actively maintained and we can request changes from the MSAL team.
from vscode-azure-account.
If anyone is still encountering this issue, I found that deleting the slsTokenCache worked for me:
rm ~/.azure/slsTokenCache.json
serverless/serverless-azure-functions#412 (comment)
from vscode-azure-account.
Hi @chrmarti , Seems I found the root cause. It might be a bug in adal lib.
I create an issue: AzureAD/azure-activedirectory-library-for-nodejs#197
Correct me if I'm wrong. 😄
from vscode-azure-account.
@jdneo I cannot reproduce this myself currently. Is it still a problem and would it be fixed by the PR AzureAD/azure-activedirectory-library-for-nodejs#188?
from vscode-azure-account.
I can still repro this on my side, the steps are:
- Make sure the Azure Account is signed out at first
- Trigger
Open bash in Cloud Shell
- Sign in
- Wait for the Cloud Shell connected
- Dispose the Cloud Shell terminal
- Trigger
Open bash in Cloud Shell
again
from vscode-azure-account.
That reproduces it and the PR you linked seems to fix it. Now we just need that fix in adal-node.
from vscode-azure-account.
@chrmarti Agree..
from vscode-azure-account.
I was able to repro this, simply by leaving VS Code open for ~an hour without interacting with it.
from vscode-azure-account.
We are experiencing the same issue. Do you guys know if it has been fixed?
from vscode-azure-account.
No, AzureAD/azure-activedirectory-library-for-nodejs#197 should be reopened from what I see.
from vscode-azure-account.
Any idea on the right person/team to contact about getting this fixed?
from vscode-azure-account.
@navyasric closed the upstream issue (AzureAD/azure-activedirectory-library-for-nodejs#197), maybe we can reach out to her.
from vscode-azure-account.
Still encountering this issue...
from vscode-azure-account.
any one can help for this issue ?
from vscode-azure-account.
Upstream is unresponsive. We could look into shipping a patched version, but we also want to look into moving to MSAL (replacing ADAL that shows the problem).
from vscode-azure-account.
What an ever-green issue. ~100 mentions!
Let me contribute to it as well.
I'm occasionally seeing this error when for some reason the token cache (maintained by adal-node library) contains two valid tokens with the same resource value:
This makes _loadSingleEntryFromCache()
method produce an error as shown on the screenshot, which is then converted into an Entry not found in cache
failure:
I don't know which chain of events leads to a token being duplicated in the cache. I also don't know why adal-node treats this condition as a failure.
Restarting vscode seems to help.
adal-node v0.2.3
ms-vscode.azure-account-0.9.11
from vscode-azure-account.
I don't know which chain of events leads to a token being duplicated in the cache
No, wait, I know!
It's a concurrency issue. Token cache (or some code that uses it) doesn't tolerate parallel async calls, that use the same kind of token.
In my case the solution was to always make all network calls sequentially.
But there're always chances for unrelated calls to interfere with each other like that, so this is definitely a bug on the token cache side.
from vscode-azure-account.
Related Issues (20)
- UNABLE TO LOUGOUT USING AZURE: SIGN OUT
- Azure key
- Cannot use Azure Sign Out HOT 14
- Cannot list subscriptions: Not able to see the subscription listed in Visual studio code
- dh-az-orko HOT 1
- Bug report
- Cannot list subscriptions
- Documentation on Proxy is not a solution HOT 1
- VSCode doesn't work with 2FA
- Cannot change tenant HOT 2
- I get zero subscriptions to select from when creating a new azure function in visual studio code.
- I am unable to select the subscription HOT 1
- having issue
- Logged into Azure but cannot access subscription or resources HOT 2
- Cannot sign in while using proxy HOT 2
- sdkopen HOT 2
- why my azure quorum blockchain resource is not showing in vs code? Infact few of other are appering. HOT 2
- Action: azure-account.selectSubscriptions HOT 2
- my-first-static-web-app HOT 2
- eroor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-azure-account.