I created a Google Cloud Function from my ML Models. It works fine with the google "Testing" on the GCP site of the function:
Screenshot of the testing
I have the function hosted 2 times, one time with authentication (Google IAM) and a second time non-authenticated
authentication modi
if I now want to invoke the function e.g. in postman the version without authentication works fine. But with authentication things it gets out of hand to figure out how to accomplish that.
How can I achieve access to the cloud function with an restricted API key?`


Authorization: Bearer <TOKEN>header. cloud.google.com/sdk/gcloud/reference/auth/print-identity-token