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
-
Connect to a Codespace through the VsCode Client.
-
Attempt to
getToken
via theVisualStudioCodeCredential
.
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)
)));
getToken
fails withError: 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