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()));
Comment From: franticticktick
Hi @jzheaux, i would like to work on this ticket, could you assign it to me please?