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

Subhrajyoti Moitra subhrajyotim at gmail.com
Tue Jul 28 05:39:25 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150728/47586dc2/attachment.html 


More information about the keycloak-user mailing list