Skip to content

Error: Cannot autolaunch D-Bus without X11 $DISPLAY when using VisualStudioCodeCredential on Linux Codespace #21542

Closed

Description

Hello! I am trying to use the VisualStudioCodeCredential helper to create a credential in VSCode (connected through a linux (debian) GitHub Codespace).

Repro

  1. Connect to a Codespace through the VsCode Client.

  2. Attempt to getToken via the VisualStudioCodeCredential.

	const keyvaultUrl = getEnv('KEYVAULT_URL');

        useIdentityPlugin(vsCodePlugin);
	const credential = new VisualStudioCodeCredential();

	console.log('TOKEN', (await credential.getToken('https://vault.azure.net/.default')
                                        .catch((e) =>
		                            console.log('ERROR!!!!', e)
	)));
  1. getToken fails with Error: Cannot autolaunch D-Bus without X11 $DISPLAY.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions