0

I want to build a Cloud Run to Cloud Run communication and use this how-to: https://cloud.google.com/run/docs/authenticating/service-to-service I generate a id token and add them to the Authorization: Bearer ID_TOKEN header. My problem is, that I also need to send a custom JWT Token in the Authorization header. Is there a way to pass both token in the Authorization header without a custom header? Or has google cloud the option for a alternative header?

  • You need to check your OWN token in your OWN header key. I don't see any other solution :( – guillaume blaquiere Oct 07 '21 at 14:08
  • Review my answer here: https://stackoverflow.com/a/59297859/8016720 Google IAP supports HTTP **Proxy-Authorization** header: https://cloud.google.com/iap/docs/authentication-howto#authenticating_from_proxy-authorization_header – John Hanley Oct 07 '21 at 16:35
  • @JohnHanley thanks, I tried it with Proxy-Authorization but it doesn't work as excepted. But I can try it again... may be the custom header is currently the only solution... – pineappleattack Oct 07 '21 at 19:01
  • The header does not work for me either. That is why I linked to my previous answer. I expect that this will work at some point soon otherwise Google would not be updating the SDKs. – John Hanley Oct 07 '21 at 19:08

0 Answers0