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

Subhrajyoti Moitra subhrajyotim at gmail.com
Tue Jul 28 06:22:21 EDT 2015


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 at redhat.com> wrote:

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


More information about the keycloak-user mailing list