looking at the <Kotlin DSL for Spring Security fil...
# server
b
looking at the Kotlin DSL for Spring Security filter chains, it seems that there is no way to configure a UserDetailsService for a SecurityFilterChain anymore; what's the recommended workaround? I'm using 2 filter chains that protect different routes and use different users; 1 for actuator and 1 for the API
r
In webflux security I use
.authenticationManager(UserDetailsRepositoryReactiveAuthenticationManager(nonDefaultUserDetailsService))
.
b
so you chain that outside of the http { } block, right?
r
I'm not using the DSL, but I see there is a DSL property so it should also work like this (havn't tested that):
Copy code
http {
            securityMatcher(ServerWebExchangeMatchers.pathMatchers("/server/api/**"))
            authenticationManager = UserDetailsRepositoryReactiveAuthenticationManager(apiUserDetailsService)
            authorizeExchange {
            }
            httpBasic { }
        }
b
ok, seems that there is no equivalent for web mvc