I can obtain an access token for a service account using
gcloud auth print-access-token --impersonate-service-account=<my-service-account>
Assuming I have such a token from somewhere (e.g. in an environment variable), how do I use it to authenticate with e.g. the Google Cloud Storage Client SDK?
I've looked through documentation of various packages in the Google Auth package, but I've found none that seem to accept a token as an authorization method.
I'm not sure access token is enough for the Python SDK if you take a look at the code you need to supply more config data such as project-id and more... (also possible to set via environment but needs to be done). Generally if you are setting all the correct env vars auth should work using the token.
What is the error you are getting maybe you are missing some other config?