Skip to content
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

[Issue] Login not possible after upgrade to 0.5.0 #1366

Closed
1 task done
lechnerc77 opened this issue Jan 12, 2023 · 3 comments · Fixed by #1374
Closed
1 task done

[Issue] Login not possible after upgrade to 0.5.0 #1366

lechnerc77 opened this issue Jan 12, 2023 · 3 comments · Fixed by #1374
Assignees
Labels

Comments

@lechnerc77
Copy link
Contributor

lechnerc77 commented Jan 12, 2023

Output from azd version
Run azd version and copy and paste the output here:

azd version 0.5.0-beta.1 (commit 57cba77)

Output from az version
Run az version and copy and paste the output here (minimum required version is 2.38.0):

{
"azure-cli": "2.39.0",
"azure-cli-core": "2.39.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {}
}

Describe the bug

After the upgrade to 0.5.0-beta.1 I use the new login flow via azd login. The login option "Interactive authentication with a browser" is started opening a browser window.

Authentication via username (=email) states that:

This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin.

A login with this username via az login or via Azure Portal is working.

To work around this issue, I did:

  1. azd config set auth.useAzCliAuth true

which forces azd to use the login credential saved by Azure CLI (after running az login).

To Reproduce

  • Install/upgrade to latest version of Azure Developer CLI
  • Start the command azd login to kick off the "Interactive authentication with a browse"
  • Enter your username and press "next"

Expected behavior

The interactive login via browser and username should be possible

Environment

Windows 11
PowerShell 7.3.1

Additional context

  • Screenshot of error message:

    Screenshot 2023-01-12 161502

  • The fallback via azd config set auth.useAzCliAuth true works

@weikanglim
Copy link
Contributor

@ellismg Could this be fixed by the work on tenant IDs? It looks like our auth flow isn't handling personal accounts (outlook address for example).

@weikanglim
Copy link
Contributor

weikanglim commented Jan 12, 2023

To work around the current issue,

  1. Ensure az CLI is installed, otherwise install it here.
  2. Run az login (NOTE: this is az, Azure CLI, and not azd)
  3. Run azd config set auth.useAzCliAuth true

azd should now use the credentials provided by Azure CLI as a fallback.

@ghost ghost removed the needs-triage For new issues label Jan 12, 2023
@ellismg ellismg self-assigned this Jan 12, 2023
ellismg added a commit to ellismg/azure-dev that referenced this issue Jan 12, 2023
Organizations supports using both work/school accounts as well as
personal accounts. This matches the default that the `az` CLI uses
when logging in.

Fixes Azure#1366
ellismg added a commit to ellismg/azure-dev that referenced this issue Jan 12, 2023
Organizations supports using both work/school accounts as well as
personal accounts. This matches the default that the `az` CLI uses
when logging in.

Fixes Azure#1366
ellismg added a commit to ellismg/azure-dev that referenced this issue Jan 12, 2023
Organizations supports using both work/school accounts as well as
personal accounts. This matches the default that the `az` CLI uses
when logging in.

Fixes Azure#1366
ellismg added a commit that referenced this issue Jan 12, 2023
Organizations supports using both work/school accounts as well as
personal accounts. This matches the default that the `az` CLI uses
when logging in.

Fixes #1366
@lechnerc77
Copy link
Contributor Author

Thanks for the super-quick fix of this issue. Highly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants