Closed
Description
Summary
I need to customize the behavior of the reactive method security expression handler. In the non reactive version this could be done extending GlobalMethodSecurityConfiguration
as stated in the documentation:
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class MethodSecurityConfig extends GlobalMethodSecurityConfiguration {
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
// ... create and return custom MethodSecurityExpressionHandler ...
return expressionHandler;
}
}
However, the reactive equivalent ReactiveMethodSecurityConfiguration
is a package-private class and can't be extended to modify the framework.
Actual Behavior
We can't modify the expression handler.
Expected Behavior
Allow the definition of a custom MethodSecurityExpressionHandler
Configuration
...
Version
5.2.0.RC1