Is it possible to put contextual data in ExchangeFilterFunctions?
I started learning spring’s reactive http client WebClient
and im having trouble understanding contextual information between requests and responses. When using RestTemplate
this was easy to do with thread locals.
Using WebClient in an AuthenticationFilter (Spring-boot, spring-security 6.3)
I am new to Reactive programming and I have hard time understanding why it appears chaining of Mono does not work in this context. I tried various methods but with no luck. The latest approach is described below where I have written a code for picking up a token from the request header and use it to make a secondary call for token number 2. This token is then used to created an authentication object with given roles.