Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to send JWT from Proxy A to Proxy B

Hi, I have a scenario where I have to call proxy B from proxy A, how do I send JWT to proxy B?

Proxy A -> Proxy B -> backend

Proxy A is already set up for OAuth. 

Proxy B is newly created, how do I send JWT to validate OAUTH to proxy B?

1 1 184
1 REPLY 1

Normally if a JWT will be used for authentication, then you'd pass it in a header. If you are following the OAuth2.0 specification, then you'd use the Authorization header.  Which means in ProxyA, you would need an AssignMessage that sets the header with the value of the JWT. like this:

<AssignMessage name='AM-Set-JWT-into-Header'>
  <Set>
    <Headers>
      <Header name='Authorization'>Bearer {variable-containing-jwt}</Header>
    </Headers>
  </Set>
</AssignMessage>