<div dir="ltr">Hi,<div><br></div><div>Looking through the examples I see a few client examples obtaining a KeycloakSecurityContext from the HttpServletRequest object via getAttribute.</div><div><br></div><div>ie.</div><div>
<br></div><div>KeycloakSecurityContext session = (KeycloakSecurityContext) req.getAttribute(KeycloakSecurityContext.class.getName());<br></div><div><br></div><div>Wondering how this would be done for examples like the &quot;database-service&quot; jax-rs example? </div>
<div><br></div><div>My goal is to be able to have access to the IDToken information for a rest call.</div><div><br></div><div>--</div><div><br></div><div>Thanks,</div><div><br></div><div>Josh</div></div>