-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Related command
az login is executed, often implicitly by services that rely on azure.
Is your feature request related to a problem? Please describe.
Related to improving the usability of azure!
Describe the solution you'd like
When device login is prompted in terminal, we usually get a prompt printed like this:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXXX to authenticate.
Instead, I propose,
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXXX to authenticate, or open https://microsoft.com/devicelogin?code=XXXXXXXX
Additional context
https://microsoft.com/devicelogin?code=XXXXXXXX will enable us to just click the URL without having to copy the code to clipboard. And please make the service behind microsoft.com/devicelogin URL to parse query param code=XXXXXXXX to auto fill the form that currently looks like this:

I believe this small act will save a few seconds and mouse moving-and-clicking efforts. Most of us are already copying the code to clipboard anyway for the sake of pasting it inside browser. Will it make security weaker if we place the code as a URL's query param? I'm not sure but I'm interested in hearing the arguments.