Description
Expected Behavior
Be able to configure MethodSecurityInterceptor
to publish AuthorizedEvent
.
I've noticed that here it is suggested to use ObjectPostProcessor
to configure FilterSecurityInterceptor
in the same way.
I propose to use the same ObjectPostProcessor
approach for MethodSecurityInterceptor
at the point of bean creation here.
Current Behavior
The only way to configure MethodSecurityInterceptor that I found so far is through BeanPostProcessor
which, I believe, isn't intended.
Context
I'm trying to build an authorization audit log to keep track of users and roles they actually use vs what is defined on a company level to optimise the setup over time.
I've noticed that there is no way to configure MethodSecurityInterceptor and thought that there's a simple fix so worth contributing.
If there's an another solution I haven't thought of - please suggest :)
I've also asked on StackOverflow to no avail.