Pengwin: Can't login to Azure with VSCode

Created on 12 Nov 2018  路  4Comments  路  Source: WhitewaterFoundry/Pengwin

Describe the bug
Install any VSCode extension that requires login to Azure. i.e. "Azure Tools" extension. Although it happens with any VSCode extension that tried to login into Azure.

To Reproduce
Steps to reproduce the behavior:

  1. Install VSCode
  2. Install Azure Tools Extension
  3. Try to login to Azure using new Tab
  4. Looks like everything works but nothing happens

Expected behavior
To see my Azure resources in VSCode

WLinux Version
1.1.23.0

Windows Build
OS Name: Microsoft Windows 10 Pro Insider Preview
OS Version: 10.0.18277 N/A Build 18277
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
BIOS Version: American Megatrends Inc. 1002, 7/2/2018

Bug How-To-Candidate Upstream Issue

All 4 comments

I can confirm this bug.

This bug can be reproduced on other WSL distros as well, it is not isolated to WLinux.

Adding Azure extensions to VS Code, then logging in by OAUTH2 via microsoft.com/devicelogin does not appear to 'stick'. Code says 'waiting for Azure login', and then reverts to options to Sign in or Create an account.

Because it is not isolated to WLinux, I recommend opening a bug report with the upstream project.

I came across one issue that suggested installing gnome-keyring. That did not fix it for me.

capture2

capture5

capture7

capture32432432

cap32432432ture

capture

capture4543543543

I am closing this issue here, for now, and have opened an issue with Azure.

If it is later determined to be an issue with WLinux I will of course re-open and address.

Thank you for this report.

A note for anyone that comes across this. This is a problem in every distro really. You do need to install gnome-keyring and then run these lines when opening an app that requires keyring access, I just put them in my .zshrc at the bottom:

eval $(dbus-launch --sh-syntax);
eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --login);
eval $(/usr/bin/gnome-keyring-daemon --components=secrets --start);

it will notify you if you are missing any other required packages.

Shutdown your distro and start it back up, open vscode and you should be able to login to Azure, Github, etc.

Excellent thank you for sharing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WSLUser picture WSLUser  路  4Comments

BhavyaJain7 picture BhavyaJain7  路  3Comments

patmolloy picture patmolloy  路  4Comments

pnelsonsr picture pnelsonsr  路  5Comments

OttoDidac picture OttoDidac  路  5Comments