feedback icon indicating copy to clipboard operation
feedback copied to clipboard

[how-to-invoke-authenticated-cloud-functions]:

Open Srikor opened this issue 1 year ago • 0 comments

If I execute the line curl $FUNCTION_URL -H "Authorization: bearer $(gcloud auth print-identity-token)" I get unauthorized error in the gcloud cli. However if I execute the command gcloud auth print-identity-token seperately, get the access token and put it in the previous command the call works and I get the response.

Srikor avatar Feb 04 '24 02:02 Srikor