Closed david-randoll closed 8 months ago
I was able to do this.
@Bean
ResourceServerHttpSecurityPostProcessor httpSecurityPostProcessor() {
// @formatter:off
return http -> http
.addFilterBefore(tenantFilter, BearerTokenAuthenticationFilter.class);
// @formatter:on
}
@david-randoll yes, this is probably the best way to add a filter to you filter-chain.
First of all, I want to thank you guys for this awesome library. I used it for the multi-tenancy feature.
I want to add a tenantFilter (
OncePerRequestFilter
) into my configuration like below. How do I do this using Spring Addons? Thank you in advance!