Sending bearer Token in header to the upstream API


#1

We have a upstream API which needs bearer token in Authorization header and it validates it with our auth server.Now when the API request is proxied by Ttk does tyk pass this header to the upstream API?


#2

Yes Tyk won’t mess with the headers unless you ask it to.


#3

Hi Martin,
So now when I add Authorization header twice once for Tyk API key and once again for Bearer token it gives error saying key not authorized and it merges those two keys into same auth header separated by a comma


#4

Sorry I misunderstood, you have two auth headers, the way to fix that is to rename the one Tyk uses to something else so there’s no conflict.


#5

Our upstream API uses the header(Authorization) for the bearer token and tyk also uses header(Authorization) for API Key.So I need to pass both these token while call the endpoint.Can we change the header used for tyk API key?How?


#6

Sorry.I got how to change it.