VSCode Credential doesn't work
See original GitHub issue- Package Name: @azure/identity
- Package Version: 1.1.0
- Operating system: Windows 10
- nodejs
- version:
- browser
- name/version:
- typescript
- version: 4.0.2
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
Describe the bug When trying to use the VisualStudioCodeCredential in the @azure/identity pakcage, you get an error:
azure:core-http:info ServiceClient: using custom request policies
azure:identity:info VisualStudioCodeCredential =>
[Error: Cannot autolaunch D-Bus without X11 $DISPLAY]
Installed keytar as some online posts mentioned, didn’t change the output
To Reproduce Steps to reproduce the behavior:
- Create a new VisualStudioCodeCredential
- try to use the credential for anything, i.e. getting a token
Expected behavior The operation should succeed
Screenshots If applicable, add screenshots to help explain your problem.
Additional context I am an ms internal engineer, feel free to reach out for more context/clarifications
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Visual Studio Code doesn't prompt for password correctly
Work around: at the terminal/command line, a manual "git push" command will display a windows dialog asking for the credentials. VS Code version ......
Read more >vscode not showing git password prompt - Stack Overflow
I have a git repo on a remote server and use ssh with password authentication to clone,pull,push. From command line everything works fine....
Read more >Fix: VS Code keeps asking git credentials on Windows - Medium
I have a git repo on Azure DevOps which I cloned to my machine via https. As prompted during the cloning process I...
Read more >Source Control, Git & GitHub in VS Code Frequently Asked ...
This usually means there is no credential management configured in Git and you're not getting credential prompts for some reason.
Read more >VisualStudioCodeCredential class - Microsoft Learn
Connects to Azure using the credential provided by the VSCode extension 'Azure ... It's a known issue that this credential doesn't work with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After some investigation and through a chat with the team, we’ve spotted the exact cause of the bug, and we’ve found a fix! I’ll be making a detailed PR soon.
I was able to reproduce this issue. I’m working on it.