Thanks a lot Stian for the very quick reply. Should have checked this out
earlier.
Got it working!!
Thanks again,
Subhro.
On Tue, Jul 28, 2015 at 3:21 PM, Stian Thorgersen <stian(a)redhat.com> wrote:
tokenParsed contains all details in the token, including the roles
----- Original Message -----
> From: "Subhrajyoti Moitra" <subhrajyotim(a)gmail.com>
> To: keycloak-user(a)lists.jboss.org
> Sent: Tuesday, 28 July, 2015 11:39:25 AM
> Subject: [keycloak-user] JS Adapter- Get user realm-roles and client
specific roles.
>
> Hello Friends,
> We are preparing a keycloak SSO based auth/IDM for our internal
applications.
>
> For protecting JS-UI we are using the JS adapter. We are able to get
basic
> user information, using loadUserProfile() api.
>
> Q) How do I get the roles that the user has been assigned at the realm
level
> as well as the client specific roles?
>
> Pl guide me how i can accomplish this. Even a server side solution would
> work, need not be just JS based.
>
> Thanks a lot in advance.
>
> Subhro.
> PS: Using KC 1.3.1 Final with MySQL
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user