I have a serverless web application where I would like to authenticate my Identity Platform user and then allow them to upload to Cloud Storage directly from the browser. I've created a Cloud Function with some sample python code from: https://cloud.google.com/storage/docs/access-control/signing-urls-with-helpers#code-samples along with doing the verifying token portion using firebase admin library.
However, I am not able to call this Cloud Function as I'm getting a 403 error from my application. I initially thought I might be able to get around this by adding a Load Balancer but it seems I'm still getting a 403.
My organization has the Domain Restricted policy that is preventing me from allowing allUsers (my web app in this case) to invoke the function and I want to know if there is another way or if that is the preferred way.