-
Notifications
You must be signed in to change notification settings - Fork 5.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
Allow the customization of the Reactive Method Security MethodSecurityExpressionHandler #7459
Comments
The reactive version is bean-based. Is this as simple as adding a conditional? |
I had a similar problem. I tried this approach and it worked. Create the following configuration class that initializes the required security beans along with my custom expression handler bean.
DO NOT use Hope this helps |
How about avoiding this problem by calling setRoleHierarchy inside ReactiveMethodSecurityConfiguration.methodSecurityExpressionHandler method or adding @ConditionalOnMissingBean annotation? |
Let's take a look at this after #9401 is merged. |
This worked for me but my |
Closed in 60cd8fd |
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: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
The text was updated successfully, but these errors were encountered: