Is it possible to get an authorization bearer token for a Google Cloud service account without the use of gcloud
?
That is, I would like to make an HTTP request (presumably signed in some way by my JSON key file) that would provide me the equivalent of
gcloud auth application-default print-access-token
This request would be made on my own server, where I may not wish to install gcloud
and where I do not have access to any internal server metadata that might provide this (e.g., as is the case with Compute Engine).
Is there some oauth endpoint that provides something like this?
Alternately, is there some way to generate long-lived tokens with gcloud
?
I'm new to the Google Cloud ecosystem, so excuse my ignorance and terminology...
gcloud
auth mechanism... – Eppie