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

azd auth login with scope does not work #2277

Closed
vhvb1989 opened this issue May 19, 2023 · 3 comments
Closed

azd auth login with scope does not work #2277

vhvb1989 opened this issue May 19, 2023 · 3 comments
Assignees
Labels

Comments

@vhvb1989
Copy link
Member

auth login returns an error:

image

debug logs

PS C:\Users\vivazqu> azd auth login --scope https://graph.microsoft.com/.default --debug
2023/05/19 13:41:19 main.go:53: azd version: 0.9.0-beta.3 (commit e564b122af7c1cb92bc54755f32930d661dddda2)
2023/05/19 13:41:20 main.go:203: using cached latest version: 0.9.0-beta.3 (expires on: 2023-05-20T20:38:30Z)
2023/05/19 13:41:20 cobra_builder.go:136: Resolved action 'azd-auth-login-action'
2023/05/19 13:41:20 middleware.go:124: running middleware 'debug'
RESPONSE 400: 400 Bad Request
--------------------------------------------------------------------------------
{
  "error": "invalid_grant",
  "error_description": "AADSTS50158: External security challenge not satisfied. User will be redirected to another page or authentication provider to satisfy additional authentication challenges.\r\nTrace ID: 52f56d8e-6b25-4eab-b90c-c6e4bcacc100\r\nCorrelation ID: a292e891-5d20-49bb-b454-d7cf53013ea0\r\nTimestamp: 2023-05-19 20:41:26Z",
  "error_codes": [
    50158
  ],
  "timestamp": "2023-05-19 20:41:26Z",
  "trace_id": "52f56d8e-6b25-4eab-b90c-c6e4bcacc100",
  "correlation_id": "a292e891-5d20-49bb-b454-d7cf53013ea0",
  "error_uri": "https://login.microsoftonline.com/error?code=50158",
  "suberror": "basic_action"
}
--------------------------------------------------------------------------------


ERROR: reauthentication required, run `azd auth login --scope https://graph.microsoft.com/.default` to log in
@ghost ghost added the needs-triage For new issues label May 19, 2023
@ghost ghost removed the needs-triage For new issues label May 19, 2023
@weikanglim
Copy link
Contributor

@vhvb1989 Did the browser pop up for you at all?

From the debug logs, I also don't see where the log is coming from, which is weird.

@weikanglim
Copy link
Contributor

NVM, Victor had sent me details offline

@weikanglim
Copy link
Contributor

This was left open from a while back, but I don't think we found anything interesting from this one. Closing.

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

No branches or pull requests

3 participants