-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Device Login: Can we add 2FA code as a query param ? #31950
Copy link
Copy link
Closed
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure 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.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure 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.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Related command
az loginis 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:
Instead, I propose,
Additional context

https://microsoft.com/devicelogin?code=XXXXXXXXwill enable us to just click the URL without having to copy the code to clipboard. And please make the service behindmicrosoft.com/deviceloginURL to parse query paramcode=XXXXXXXXto 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.