We should add support for adding a custom filter in the Server Kotlin DSL.
Similar to ServerHttpSecurity, we should have 3 ways to add a filter, addFilterAt, addFilterBefore and addFilterAfter.
The configuration should look like this
@Bean
open fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http {
addFilterAfter(TestWebFilter(), SecurityWebFiltersOrder.SECURITY_CONTEXT_SERVER_WEB_EXCHANGE)
}
}
Comment From: evgeniycheban
I can take this.
Comment From: eleftherias
Thanks @evgeniycheban! The issue is yours.