[keycloak-user] JS Adapter- Get user realm-roles and client specific roles.

Stian Thorgersen stian at redhat.com
Tue Jul 28 05:51:27 EDT 2015


tokenParsed contains all details in the token, including the roles

----- Original Message -----
> From: "Subhrajyoti Moitra" <subhrajyotim at gmail.com>
> To: keycloak-user at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list