Skip to content

az login command allow access using only user parameter #5911

@jcrphx03

Description

@jcrphx03

To reproduce the issue
scenario #1
_az login -u
password: < just enter>
output:
It will display the list of subscriptions in your account.

_scenario #2
If you enter a wrong user and "enter" in the password it will displayed
_az login [email protected]
password: < just enter>
Output:
...TypeError: 'NoneType' object is not subscriptable....

_Scenario #3
If you enter a wrong user and wrong password it will displayed
Output:
...."Logging in through command line is not supported. For cross-check, try 'az login' to authenticate through browser..."

Note: Before to reproduce the issue I assured I signed out from my account in the portal.


Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions