How to do proxy chaining with oauth

I have 3 proxies: Proxy A, Proxy B (requires OAuth authentication) and OAuth Proxy which generates JWT token using BasicAuthentication. Is it possible to chain these proxy up such that Proxy A can get JWT token from OAuth Proxy and pass on the JWT token to Proxy B

I have tried adding the ServiceCallout policy in Proxy A, set user/password as header to call OAuth proxy first and proxy chaining Proxy B as local target but I got the 401 response. 

Thank you.

1 1 245
1 REPLY 1

Using Service Callout is  better option, you need to extract response variables from your first service to use in your second service.