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:
-
authorizeRequests
vsauthorizeHttpRequests
-
filterSecurityInterceptorObserveOncePerRequest
vsshouldFilterForAllDispatcherTypes
- Custom
accessDecisionManager
vsauthorizationManager
-
RunAsManager
adaptation -
AccessDecisionManager
adaptation -
ExpressionHandler
configuration -
@EnableGlobalMethodSecurity
vs@EnableMethodSecurity
-
AbstractSecurityWebSocketMessageBrokerConfigurer
vs@EnableWebSocketSecurity
- Make default expression handler in PrePostMethodSecurityConfiguration to use existing permission evaluator #11598