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

ADC setup - Error 400: invalid_scope #296

Open
abitrolly opened this issue Apr 22, 2024 · 2 comments
Open

ADC setup - Error 400: invalid_scope #296

abitrolly opened this issue Apr 22, 2024 · 2 comments
Assignees
Labels
component:python sdk Issue/PR related to Python SDK type:bug Something isn't working

Comments

@abitrolly
Copy link

Description of the bug:

Login with ADC fails.

gcloud auth application-default login --scopes="https://www.googleapis.com/auth/generative-language,https://www.googleapis.com/auth/cloud-platform"

What I did wrong?

Actual vs expected behavior:

image

Any other information you'd like to share?

No response

@abitrolly abitrolly added component:python sdk Issue/PR related to Python SDK type:bug Something isn't working labels Apr 22, 2024
@singhniraj08
Copy link

@abitrolly, I don't see client-id-file argument in gcloud auth application-default login command. Please follow Authentication with OAuth quickstart and let us know if you face any issues. Thank you!

@singhniraj08 singhniraj08 added the status:awaiting user response Awaiting a response from the author label Apr 24, 2024
@abitrolly
Copy link
Author

@singhniraj08 why there should be the argument? Please explain. Without --scopes parameter the auth command successfully lands at https://cloud.google.com/sdk/auth_success

--scopes parameter was advised in #8

@singhniraj08 singhniraj08 removed the status:awaiting user response Awaiting a response from the author label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants