-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
After learning about the new authorization configuration support in HttpSecurity::authorizeHttpRequests and seeing the docs stating that AuthorizationFilter is intended to supersede the FilterSecurityInterceptor, I've opened the PR against Spring Boot (with 3.0 being a natural target for such a change) to initiate the migration to the new configuration support:
However, the migration wasn't as trivial as one would expect looking at the docs (for example, no apparent direct replacements for #anonymous or #fullyAuthenticated) and I haven't found any migration guide available either in the reference docs or in the Wiki here on GitHub.
So, IMO it would be a good idea to provide such a migration guide.
Here's a list of use cases that should inform the contents of such a guide:
-
authorizeRequestsvsauthorizeHttpRequests -
filterSecurityInterceptorObserveOncePerRequestvsshouldFilterForAllDispatcherTypes - Custom
accessDecisionManagervsauthorizationManager -
RunAsManageradaptation -
AccessDecisionManageradaptation -
ExpressionHandlerconfiguration -
@EnableGlobalMethodSecurityvs@EnableMethodSecurity -
AbstractSecurityWebSocketMessageBrokerConfigurervs@EnableWebSocketSecurity - Make default expression handler in PrePostMethodSecurityConfiguration to use existing permission evaluator #11598