Closed
Description
It would be nice if users could listen for authorization events specific to the type of source:
@EventListener
public void onEvent(AuthorizationDeniedEvent<MethodInvocation> event) {
// ...
}
One way this can be done is by having AuthorizationDeniedEvent
and AuthorizationGrantedEvent
implement ResolvableTypeProvider
:
ResolvableType type = ResolvableType.forClassWithGenerics(getClass(), ResolvableType.forInstance(getObject()));