Is it possible to specify a custom header for the id_token modifier? So we get:
X-Auth: token
instead of
Authorization: Bearer token
Is it possible to specify a custom header for the id_token modifier? So we get:
X-Auth: token
instead of
Authorization: Bearer token
The solution was to use the id_token
mutator together with the header
mutator.
mutators:
header:
enabled: true
config:
headers:
X-Auth: '{{index .Header "Authorization" 0 | trimPrefix "Bearer "}}'