Say you want to call a Http Cloud Function from Golang. You start looking at the Google documentation about authenticating Developers, Functions, and End-users and end up reading about self-signing a service account JWT.

This looks rather complicated, where as the curl example is so easy:

There are other examples around that do stuff with JWT tokens, but actually the idtoken example provided by Google just needs little adjustment to get it to work for your Cloud Function and service-account.

The idtoken example as-is, works only if you have to access to the compute metadata service.

But if you…

Jasper Mennink

Doing fun stuff with all the cool things around...

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store