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

ken edward kedward777 at gmail.com
Fri Jun 16 10:01:07 EDT 2017


Thanks Hynek,

I was just wanting to see what kind of information is available via
the org.keycloak.adapters.saml.SamlSession  that would not be in the
request.... How would I interrogate the saml session information?

Ken

On Fri, Jun 16, 2017 at 3:07 AM, Hynek Mlnarik <hmlnarik at redhat.com> wrote:
> 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