KeycloakService#getUserRoles() filter by resource #522
Labels
enhancement
This issue/PR is an enhancement or new feature.
evaluate-in-next-version
Evaluate if the feature or change might be included in the next library release.
Bug Report or Feature Request (mark with an
x
)Versions.
keycloak-angular:
14.1.0
Desired functionality.
Currently, KeycloakService#getUserRoles() returns resource roles for all resources, not just the current
clientId
, which can be problematic if there is another resource role used by another client that has the same name.There is currently no way to filter the resource roles by the current
clientId
besides manually looping through each role and callingKeycloakService#isUserInRole()
, which is very inefficient.The text was updated successfully, but these errors were encountered: