Hi,

Looking through the examples I see a few client examples obtaining a KeycloakSecurityContext from the HttpServletRequest object via getAttribute.

ie.

KeycloakSecurityContext session = (KeycloakSecurityContext) req.getAttribute(KeycloakSecurityContext.class.getName());

Wondering how this would be done for examples like the "database-service" jax-rs example? 

My goal is to be able to have access to the IDToken information for a rest call.

--

Thanks,

Josh