spring-cloud-gcp

How to call REST service which uses GCP authentication?

六眼飞鱼酱① 提交于 2019-11-27 07:31:38
问题 From my application I have to invoke external http service which uses google authentication. It works when I invoke it from browser. I found out that it happens because I have cookie which contains GCP_IAAP_AUTH_TOKEN_<random_string> GCP_IAP_UID So my cookie look like this: cookie: GCP_IAP_UID=111111111111; GCP_IAAP_AUTH_TOKEN_1234567891234567890B=verylongstringhere" I tried to set this cookie directly in my restTemplate and it works properly but I expect that I have to get token based on