Add roles based on attribute value (instead of role name) #86
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: simcop2387/keycloak-regex-mapper#86
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "Elektordi/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently, roles can only be targeted by their name (and the name of their client for client roles), but I have a case on one of the Keycloak I'm working on, where there is a new permissions auditing software, and all users can only be given permissions from there.
All those permissions are coming from an upstream IDP as claims, but we cannot control their names. On the other side, our clients have roles names imposed by different SP.
The only way I found to make it work is by adding a attribute on each role, with the upstream permission name defined here.
I just had to do a little hack, and I'm open to ideas on how to fix it, but 19.0 branch of keycloak have a bug on the UI where you cannot save more than one attribute with the same name, so I split values by commas, to be able to have multiple upstream permissions for a role.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.