question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

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:

  1. Create a new VisualStudioCodeCredential
  2. 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:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sadasantcommented, Oct 1, 2020

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.

1reaction
sadasantcommented, Sep 30, 2020

I was able to reproduce this issue. I’m working on it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found