-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Additional filters registered when using Custom DSL #13203
Comments
Hi @bwgjoseph, thanks for the report. That is not the expected behavior, since you disabled When you invoke Line 341 in 9ec3e80
DefaultLoginPageGeneratingFilter#formLoginEnabled to true .
I believe that when a configurer is removed, it should be removed from both lists. That said, I opened #13235 to fix that. |
Thanks for the fix and explanation! With what you have explained, I imagine that this should fix for anything that I configure (to disable) from Also, in case you missed it, can I use |
Yes, you can. You can also make the Custom DSL to be picked up by |
I'm using
(I did test with Spring Boot 3.1.0, and I am facing the same issue)
Describe the bug
While playing around with Custom DSL, I noticed 2 additional filters are being applied when using
custom dsl
.Not exactly sure if this is intended behavior, but I thought it shouldn't be?
To Reproduce
Here's the following code
When
custom dsl
is not applied, this is the filter chainBut when it is being applied, this is the filter chain
Expected behavior
I should expect that the filter chain should be same across both setup, unless I am missing something (I hope not)?
Sample
You can find the reproduce over at spring-security-custom-dsl-bug
Additional Notes
As the docs isn't very explicit, but can I assume that the
custom dsl
is used for, or at least, can be used for the purpose of having a common configuration that can be re-use in differentSecurityFilterChain
?The text was updated successfully, but these errors were encountered: