You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my organization we are using temporary access tokens and it would be very helpful to have the authentication via CLOUDSDK_AUTH_ACCESS_TOKEN environment variable supported.
Just ran into this issue and took a while to debug. The problem is that gauth.py first tries to use an API approach to get credentials and only falls back to gcloud (which respects CLOUDSDK_AUTH_ACCESS_TOKEN) when that fails. However, authentication succeeds when in environments where metadata.google.internal can be contacted! Credentials are automatically retrieved and CLOUDSDK_AUTH_ACCESS_TOKEN thus ignored.
Would be great if priority were given to CLOUDSDK_AUTH_ACCESS_TOKEN, then gcloud.
In my organization we are using temporary access tokens and it would be very helpful to have the authentication via
CLOUDSDK_AUTH_ACCESS_TOKEN
environment variable supported.Probably related discussion on the google api auth library: googleapis/google-auth-library-python#1165
The text was updated successfully, but these errors were encountered: