keycloak_flutter
keycloak_flutter copied to clipboard
Get keycloak instance (to get roles for a particular user)
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?
The roles are included in the token. You can decode the token to retrieve the roles.