Describe the bug
In a headless linux VM, doing az login opens www-browser and that in turn opens w3m, a text-only browser that does not support the device login flow.
To Reproduce
ssh into headless VM without X forwarding. run az login.
Expected behavior
Device code flow should get initiated, ie, i should see a URL and a code to enter there after opening it in a javascript-capable browser.
Environment summary
I used the script install on linux to get the newest version.
Additional context
This is a regression, which was introduced by this commit. Ie, it doesn't check DISPLAY envvar anymore.
Describe the bug
In a headless linux VM, doing
az loginopens www-browser and that in turn opens w3m, a text-only browser that does not support the device login flow.To Reproduce
ssh into headless VM without X forwarding. run
az login.Expected behavior
Device code flow should get initiated, ie, i should see a URL and a code to enter there after opening it in a javascript-capable browser.
Environment summary
I used the script install on linux to get the newest version.
Additional context
This is a regression, which was introduced by this commit. Ie, it doesn't check DISPLAY envvar anymore.