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()));
Activity
franticticktick commentedon Mar 6, 2025
Hi @jzheaux, i would like to work on this ticket, could you assign it to me please?
Add support ResolvableTypeProvider to AuthorizationEvent
Add support ResolvableTypeProvider to AuthorizationEvent
Add support ResolvableTypeProvider to authorization events
Add support ResolvableTypeProvider to authorization events
Add Authorization Event Tests
Add Authorization Event Tests
Add support ResolvableTypeProvider to authorization events