79419180

Date: 2025-02-06 19:57:23
Score: 2
Natty:
Report link

On further debugging, I realized that the SecurityFilterChain bean was not recognized, hence the matcher was never invoked.

I was able to make it work with the following changes:

spring-cloud.version=2024.0.0 with spring-boot-starter-webflux

Using @EnableWebFluxSecurity instead of @EnableWebSecurity and setting up the filter chain as

@Bean
    public SecurityWebFilterChain securityFilterChain(ServerHttpSecurity http){...}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @EnableWebFluxSecurity
  • User mentioned (0): @EnableWebSecurity
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user1657054