-
Notifications
You must be signed in to change notification settings - Fork 40.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
Clarify that spring.security.filter properties only apply to servlet-based web apps #33551
Comments
spring.security.filter.order
is ignored in the reactive stack
This feels like an oversight to me. I think we should explore applying the property to the reactive stack. |
It occurs to me that applying |
As things stand, I don't think we can implement this. As @tgeens has noted above, Without changes to Spring Security, I think the best that we can do here is to make it clearer that the @tgeens In your situation, I believe you can safely assume that the security filter in a reactive app will have the hardcoded order |
There's a section in the reference documentation that we can revisit as part of this issue if we want to do so. |
Should it be documented (or fixed) that
spring.security.filter.order
is ignored in the reactive stack ?Context: I'm trying to convert an auto-configuration-enabled library to the reactive-stack. It uses a filter that should be registered before the spring-security-filter. The servlet variant is using
SecurityProperties.getFilter().getOrder()
as a best-effort attempt to find out the order of the spring-security-filter.WebFluxSecurityConfiguration
uses a fixed@Order(WEB_FILTER_CHAIN_FILTER_ORDER)
- but theWEB_FILTER_CHAIN_FILTER_ORDER
is a magic number, with only package visiblity.The text was updated successfully, but these errors were encountered: