I have a use case where I have 2 apps:
- React SPA frontend, running on web.myportal.example
- Node Express backend, exposing a REST api on api.myportal.example
Both apps are deployed into GCP Compute Engine
and are accessible from the Internet. I was able to configure IAP to prevent unauthorized access. I can specify a list of email accounts that are allowed to use the UI and API.
What I need is autorization capability from GCP IAP. Does it have one?
Simple example - some of the API endpoints should only be accessible to folks with a specific group/role membership. How can I extract that from IAP? The only thing IAP leaves me is a GCP_IAAP_AUTH_TOKEN
cookie, which I cant even use due to it's definition.