[keycloak-user] How to display user information from keycloak SAML adapter assertions/session?

Hynek Mlnarik hmlnarik at redhat.com
Fri Jun 16 03:07:21 EDT 2017


What kind of information? Wont e.g.
request.getUserPrincipal().getName() and role-related methods on
HttpServletRequest do the job? [1]

--Hynek

[1] https://github.com/keycloak/keycloak/blob/master/examples/saml/post-with-encryption/src/main/webapp/index.jsp#L4

On Thu, Jun 15, 2017 at 4:36 PM, ken edward <kedward777 at gmail.com> wrote:
> Hello,
>
> I have configured a tomcat Keycloak SAML adapter with ADFS as my Idp.
> I created a simple web app with a protected /saml directory. It seems
> to work. BUT how can I display the logged in user information after
> the user is authenticated?
>
> org.keycloak.adapters.saml.SamlSession :
> org.keycloak.adapters.saml.SamlSession at 13a50bc9
>
> Ken
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user



-- 

--Hynek


More information about the keycloak-user mailing list