generative-ai-python
generative-ai-python copied to clipboard
ADC setup - Error 400: invalid_scope
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:
Any other information you'd like to share?
No response
@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 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 https://github.com/google-gemini/generative-ai-python/issues/8