I am using an IAP authenticated front end (running on react) and I want to make a request to a back end server using google cloud IAP authentication but I can't manage to authenticate with the service.
From what I have observed, the request attaches the cookies that are stored that look like "GCP-IAP_AUTH_TOKEN" etc. when I am making any requests to the front end. How can I use those cookies to authenticate with the back end?
I would like the solution to be as user friendly as possible, so ideally id like to extract these cookies or the authentication headers and attach them to my request to the back end service so that the solution does not require the user to use a service account etc.
Has anyone ran into this issue? Is there a definite solution?