You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should consider supporting expressions in method authorization handlers for simple setups. Currently, if you want to handle authorization denied and map the return value to null, you must create a MethodAuthorizationDeniedHandler/PostProcessor class and expose it as a bean:
marcusdacoregio
changed the title
Support Expressions in Method Authorization Handlers
Support Expressions in Method Authorization Denied Handlers
Apr 9, 2024
CrazyParanoid
pushed a commit
to CrazyParanoid/spring-security
that referenced
this issue
Apr 15, 2024
We should consider supporting expressions in method authorization handlers for simple setups. Currently, if you want to handle authorization denied and map the return value to
null
, you must create aMethodAuthorizationDeniedHandler/PostProcessor
class and expose it as a bean:That is a little bit too complicated to just return null. A simpler setup could be:
Related:
The text was updated successfully, but these errors were encountered: