Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get keycloak instance (to get roles for a particular user) #16

Open
tanql opened this issue Aug 29, 2022 · 1 comment
Open

Get keycloak instance (to get roles for a particular user) #16

tanql opened this issue Aug 29, 2022 · 1 comment

Comments

@tanql
Copy link

tanql commented Aug 29, 2022

Not really an issue, but a request/question. Is it possible to get the KeycloakServices Keycloak? I would like to know the roles of the user, which can be found through the parsedToken. I can only get the userprofile from the service, but it doesn't contain the roles which I need. Or am I supposed to parse the getToken somehow?

@gibahjoe
Copy link
Owner

The roles are included in the token. You can decode the token to retrieve the roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants