How to pass Bearer token to target server in Edge MicroGateway?

I'm struggling with passing my bearer token to target server.

So essentially, when making a post request I've added a Bearer token as part of the authorization header. I would like for my custom plugin to be able to get the token and pass it as part of the response.

Hardcoding the Bearer token in my custom plugin index.js worked but not the solution.

Any help would be great thanks!

@Dino-at-Google

@srinandans

1 1 750
1 REPLY 1

ok was able to get it:

Had to use property keep-authorization-header in the oauth plugin so edge micro wouldn't consume the auth header before it went to the target server