OAuth 2.0 access token in a custom header

Hello,

My API needs 2 values to identify / authorize any request:

  • A bearer token (We have WSO2), that needs to be in the header ‘Authorization’
  • A SSO-JWT (To identify the current user) that I need to set in a custom header ‘sso-jwt’

The bearer token we get doing a simple POST request (in the scripts), but the SSO-JWT we need to do an authentication with OAuth 2.0.

We have a 2FA security and we need to open a website (That I’m doing right now with the method provided by Postman).

After doing the authentication with our provider, I got the access token but it is set in the header ‘Authorization’. Is there any way to set this value in a custom header? Or, in the scripts, do the same behaviour of the authorization?