[keycloak-user] SecurityContext in ContainerRequestFilter

Benjamin Hansmann [alphaApps] b.hansmann at alphaapps.de
Wed May 13 00:26:05 EDT 2015


When using JAX-RS EJBs one supplies the @SecurityDomain annotation and
is able to inject a SecurityContext. But I am now trying to get hold of
a SecurityContext in a ContainerRequestFilter from the filter's
ContainerRequestContext. The UserPrincipal seems to be null. How could
one get a UserPrincipal from within a ContainerRequestFilter? I need it
for some sort of revocation policy.



More information about the keycloak-user mailing list