2 Comments
User's avatar
Elieser's avatar

Hi... How did you get the SecurityContextHolder on UserRevisionListener?

Markus Eisele's avatar

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!