-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azd login
should fallback to or hint at device code if no browser is found
#1250
Comments
@weikanglim +1 for WSL experience |
Just tried this. Works smooth in codespaces. Should be like that in WSL too. |
@pdebruin are you getting an error in WSL? Can you share it? |
@weikanglim we should update azd to use
|
Moving to |
@vhvb1989 Do you see a custom usage in |
=== $ azd init --template todo-java-mongo-aca Initializing a new project (azd init) (✓) Done: Initialized git repository ? Please enter a new environment name: azdwsl2-dev SUCCESS: New project initialized! $ azd up $ azd auth login ERROR: logging in: exit status 3 === ERROR: logging in: exec: "xdg-open,x-www-browser,www-browser": executable file not found in $PATH === Hope that helps |
Congrats on the release! 🎉 |
@vhvb1989 Was WSL working with interactive browser? |
Yes, it works, but it depends on |
Also related: #2291 |
@weikanglim @vhvb1989 is this issue still valid with @ellismg MSAL changes to override the package used for browser opening? - #2291 (comment) |
Apparently this isn't yet solved. |
Actually, if I read that again, and I press enter it pops the browser. I think it would be better to do what other login experiences do and just put up the devicelogin URL. |
Currently,
azd login
fails with the following error if no browser is installed on Linux:This would be a common scenario for devcontainers without
xdg-utils
installed.We should either fallback to device code login or provide user hints to try device code login as a fallback.
The text was updated successfully, but these errors were encountered: