I am writing an app in which I want to enrich an outgoing request based on some configuration. Configuration example
clients:
clientA:
header1: value1
header2: value2
client2:
header1: value3
header2: value4
To do that I have two goals:
- Extend the native configuration to be able to add the more information
- In a ClientFilter, retrieve this information and add to the request
Talking about the second point: 1- Is there a way that I get the clientId of the client making the request on the filter? Or can I inject the client itself? 2- Is there a way for me to load the appropriate configuration based on the clientId?