You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to pass X-Api-Roles to the backend API (couchdb), but I could not figure out how to use a template to achieve this. In "Global Request" settings I entered:
Figured it out after looking at this pull request.
This did the trick: In "API Backends" under "Global Request Settings / Set Request Headers" I had to add
X-Auth-CouchDB-Roles: {{headers.x-api-roles}}
So, while my couchdb backend API is always accessed with one and the same proxy user (I named it apiumbrella, suprisingly), I can pass in roles specific to the API-key / API-user.
Is there a list of all headers supporting template-based rewriting, or can I just use any header translated to lower case?
I tried to pass X-Api-Roles to the backend API (couchdb), but I could not figure out how to use a template to achieve this. In "Global Request" settings I entered:
The value of X-Api-Roles is passed to the backend, but I would like to pass it as X-Auth-CouchDB-Roles. How can I achieve this?
tcpdump snippet showing request from API umbrella to API backend:
The text was updated successfully, but these errors were encountered: