-
I need to add an additional header depending on auth method, e.g.:
But setting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @renom |
Beta Was this translation helpful? Give feedback.
Hey @renom
I think the reason why it's not available for the jwt method could be due to the nature of JWT itself. JWT are self-contained, meaning that all the necessary information should be contained within the token itself. This includes the method used for authentication, which is typically specified in the alg (algorithm) claim of the JWT. So here might not be a need to specify the method in an additional header.
If you need to add custom headers based on the authentication method, you might consider using Ory's
hydrator
mutator. This mutator allows for fetching additional data from external APIs, which can be then used by other mutators. It works by making an upstream HTTP call to an…