Custom Spring Security Expression not recognised by the inspector
Answered
I have created a set of custom Spring Security methods by extending SecurityExpressionRoot and then I've registered this new root using a component which extends DefaultMethodSecurityExpressionHandler. The latter component was registered in the Spring XML file via <global-security> <expression-handler>.
The code works and the @PreAuthorize annotation does it's job ... My problem: whenever I use the custom method (expression) the IntelliJ inspector reports a warning and ins't able to identify the method.
Did I miss a step ? Is there something I can do to "help" the inspector?
Please sign in to leave a comment.
Hello Robert,
this is currently not supported yet, please watch https://youtrack.jetbrains.com/issue/IDEA-167762 for progress.
That was a fast response ... thank you, I'll keep an eye on it.
A workaround: https://youtrack.jetbrains.com/issue/IDEA-167762#focus=streamItem-27-3283942-0-0