'Get Authenticated user in a React JS app which is behind Google IAP
I have a React JS app which is behind the Google IAP. I need to get the IAP authenticated user email and use it in the app. How can I do that?
IAP adds X-Goog-Authenticated-User-Email
header to the request. But I wonder if there is a way to get it since React runs on the client side?
(There are SO answers for getting this header from server side)
Note: NGINX serves the static files of the React app and it is in GKE
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|