Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is it possible to exchange a Google ID token for an access token?

I'm working with a Google service account and have a quick question.

I have a Google ID token that was generated using the service account email:
service-email@product-iam.gserviceaccount.com.

eyJhbGciOiJSUzI1NiIsImtpZCI6IDSSfajg5Y2UzNTk4YzQ3M2FmMWJkYTRiZmY5NWU2YSzg3MzY0NTAyMDZmYmEiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiJodHRAwIn0.P6VppfC-d9QIJgHZZ4a-fnomXXSvN3j9_B6LNwen46oMZn0sTeq2Rh_fUwEjTt3FI03o4SsxQFn5DsTeEv7aDjz3S2obIQcOY1l3W4lJcymIU5HaKF0EEcRm2nRvcxuQDrroJZInLGA3Kzjx8EMbrJTwWc9slYBFwi7zxzclEDeUhK94Xjdm55fG4S2TNk-ADgH1NXJgS2GoHnUhVj8J0Cw

Now, I want to convert this ID token into an access token so I can use it to call Google APIs.

How can I achieve this? Is there a recommended method or endpoint for this process?

Any help or insights would be greatly appreciated!

0 0 35
0 REPLIES 0
Top Labels in this Space
Top Solution Authors