Relative Content

Tag Archive for javaspringspring-webfluxwebclient

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.