-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Migrate to AuthorizationFilter in Spring Security auto-config #31255
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
Conversation
d86eb8b
to
62d5ee5
Compare
This is effectively blocked on the following issue in Spring Security: I'll keep the PR in draft state until there's some update. |
Thanks, @vpavic. I've subscribed to spring-projects/spring-security#11337. We can take a more in-depth look at this once the Security team have taken a look. Josh should be back in the office next week. |
spring-projects/spring-security#11360 is now tracking some additions to Spring Security that close some gaps in the functionality offered by |
62d5ee5
to
8a33a2a
Compare
With spring-projects/spring-security#11360 resolved, this is now ready for review but at the same time apparently blocked by #31703. @wilkinsona, note that I had to undo some of your changes from 4bd3534 as there's no
|
Thanks, @vpavic. We'll have a chat with the Security team. |
8a33a2a
to
fb25437
Compare
@wilkinsona I believe this should now be ready meaning I don't think my observation about this being blocked by #31703 was valid. I've taken a closer look at |
The |
Great stuff. Thanks, @vpavic. |
Is there anything preventing this from making it into today's |
Nothing other than the team being short on time. We'll see what we can do. |
fb25437
to
217302b
Compare
Got it. I updated the PR to pick up the current Update: I just spotted a couple of new usages of old authorization DSL that have emerged since this PR has last been touched. |
This commit updates Servlet based Spring Security auto-configuration to use AuthorizationFilter, which is intended to superseed FilterSecurityInterceptor.
217302b
to
b3c066f
Compare
This commit updates Servlet based Spring Security auto-configuration to use AuthorizationFilter, which is intended to supersede FilterSecurityInterceptor. See gh-31255
Thanks very much, @vpavic. |
This commit updates Servlet based Spring Security auto-configuration to use
AuthorizationFilter
, which is intended to superseedFilterSecurityInterceptor
.See note in Authorize HttpServletRequests with AuthorizationFilter section of Spring Security's reference manual.
Note that
SampleActuatorCustomSecurityApplicationTests#testInsecureApplicationPath
fails after migrating to the new authorization model, meaning further changes might be needed in either Spring Boot or Spring Security.