Skip to content

Device Login: Can we add 2FA code as a query param ? #31950

@thammegowda

Description

@thammegowda

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:
Image

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.

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamPossible-SolutionSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions