IDN Workflow Http request Custom Authorization - Header Value as variable

Hi,

I’m currently working on a workflow that sends first Http request to get the Bearer token from an outside API and then sends a second Http request with Custom Authorization where i need to pass previously received Bearer token to Header Value field.

The problem is - Header Value field doesn’t let us select “Choose Variable” option so i can’t pass any kind of variable in there.

Do you have any ideas on how to approach this situation?

Hi @maciej_itrun , you can use two HTTP request actions, store the bearer token from the first HTTP call response in a variable and pass it to the second HTTP request.

The first http request was there fetching the token.

The solution for the second http request however was to:

  1. remove Authentication Type completely (it required creating fresh new Htttp request step and just not picking anything in this field)
  2. Manually add a request header: Authorization: Bearer {{$.token.path}}

This way i was able to send my Bearer token taken from the first http request

1 Like

@maciej_itrun Glad that you were able to build it this way.