google-oauthgcloudgoogle-auth-library

gcloud auth application-default login runs into Access blocked error


Trying to execute gcloud auth application-default login yields one of these errors:

Access blocked: Google Auth Library's request is invalid

Access blocked: Google Auth Library's request is invalid

or

Access blocked: Authorization Error

Access blocked: GAuthorization Error


Solution

  • The solution is to update your gcloud version by running gcloud components update first.