How to Build Reliable, Compliant Data Histories with Hibernate Envers in Modern Java Applications
Hi... How did you get the SecurityContextHolder on UserRevisionListener?
Good catch. If you’re working with a secured application too can inject a security context e.g. in the resource and pass it down
@Context
SecurityContext securityContext;
Just add Quarkus-Security extension. Or write your own, custom Jax RS Security Context. https://quarkus.io/guides/security-customization
Let me know if I should build an example. Or if you have specific things you’d like to see!
Hi... How did you get the SecurityContextHolder on UserRevisionListener?
Good catch. If you’re working with a secured application too can inject a security context e.g. in the resource and pass it down
@Context
SecurityContext securityContext;
Just add Quarkus-Security extension. Or write your own, custom Jax RS Security Context. https://quarkus.io/guides/security-customization
Let me know if I should build an example. Or if you have specific things you’d like to see!