-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Spring Security FilterChainProxy is registered automatically as a Filter #2171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What were you trying to do with the |
My problem resolved. For those of you who are interested in my problem, I added
This prevents registering actual filter on startup. Spring Boot calls every By the way I had to use DelegatingFilterProxy because of early initialising is causing an error in my application. I had to use it for delegating to a later phase. Shortly, I think that It would be great to add this sections clearly in documentation. It would help really a lot. Thanks for your time guys. |
That doesn't seem like a great resolution. If you can provide a simple test project that demonstrates the problem, we might be able to have a more productive discussion. |
You are right, I will provide tomorrow. |
Spring Security is exposing a Filter which registered by Spring Boot. This results in a duplicate filter registration and unpredictable behaviour of our application.
Details:
org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity
is registering aFilterChainProxy
instance bean which is aFilter
as this:I have declared a FilterRegistrationBean a FilterRegistrationBean as here:
org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration#securityFilterChainRegistration
This seems a bug to me. Am I missing something?
The text was updated successfully, but these errors were encountered: