[keycloak-user] How can I access org.keycloak.KeycloakPrincipal without javax.servlet.http.HttpServletRequest

Stephen More stephen.more at gmail.com
Tue Aug 23 16:07:42 EDT 2016


I am familiar with the Apereo CAS Client, that project has an
AssertionThreadLocalFilter that allows one to access the principal without
having direct access to the web tier session.

org.jasig.cas.client.validation.Assertion assertion =
org.jasig.cas.client.util.AssertionHolder.getAssertion();
org.jasig.cas.client.authentication.AttributePrincipal principal =
assertion.getPrincipal();


Does keycloak have a similar function to access the
org.keycloak.KeycloakPrincipal without access to the HttpServletRequest ?

-Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160823/7e2a9edd/attachment.html 


More information about the keycloak-user mailing list