[keycloak-user] OpenID Connect Clients and Roles

Andy Stebbing andy.stebbing at adelaide.edu.au
Wed Sep 14 19:52:45 EDT 2016


Thanks very much for that info. I’ve managed to get it from the token, didn’t realise it had that information in there.

I used this tool: https://jwt.io/ to decode the token for testing.

From: Stian Thorgersen [mailto:sthorger at redhat.com]
Sent: Wednesday, 14 September 2016 9:27 PM
To: Andy Stebbing <andy.stebbing at adelaide.edu.au>
Cc: keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] OpenID Connect Clients and Roles

Roles are a Keycloak specific extension and are not shown in the OpenID Connect configuration. They are available in the access token.

On 14 September 2016 at 08:52, Andy Stebbing <andy.stebbing at adelaide.edu.au<mailto:andy.stebbing at adelaide.edu.au>> wrote:
Hi,
  I'm fairly new to OpenID Connect and Keycloak (using version 2.2.0-CR1 and RedHat SSO v7), I've managed to get a client working with a realm within Keycloak. I've configured the client in the realm using a shared key and have configured my remote client accordingly. It works fine for authentication and I'm getting the standard claims back. But I don't know how to get the roles associated with the user to come through. I can see in the endpoint OpenID connect configuration on the server that the following claims are supported:

"claim_types_supported": [
        "normal"
    ],
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub",
        "iss",
        "auth_time",
        "name",
        "given_name",
        "family_name",
        "preferred_username",
        "email"
    ]

Does this mean that it's not possible to get the roles from the userinfo call? Or if it is possible, how do I configure it to be supported?

Any help is very much appreciated !

Thanks
andy

_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160914/deb16ca5/attachment.html 


More information about the keycloak-user mailing list