Closed Sebastian-Gil-wcq closed 6 months ago
Hi @Sebastian-Gil-wcq. We currently don't support client roles in the KeycloakRealmRoleBatch or KeycloakRealmRole composite role. We accepted this feature and will implement it.
Awesome ! Will be waiting for its implementation.
Done. The feature will be introduced at the nearest release. KeycloakRealmRole with client roles example:
apiVersion: v1.edp.epam.com/v1
kind: KeycloakRealmRole
metadata:
name: keycloakrealmrole-sample
spec:
description: developer role
name: test-role
realmRef:
name: keycloakrealm-sample
kind: KeycloakRealm
composite: true
composites:
- name: offline_access
compositesClientRoles:
broker:
- name: read-token
account:
- name: manage-account
- name: view-profile
Is your feature request related to a problem? Please describe. At the moment when I attempt to create a role using KeycloakRealmRoleBatch or KeycloakRealmRole I'm not able to use client roles (or I see no way how can I use them). Sample KC role config looks like:
This is the prerequisite for fine grained permission handling that can allow client to query/rotate its own secret.
Describe the solution you'd like I would like to have both: real roles and client roles to be used as a composite
Describe alternatives you've considered The only alternative is to do it manually in KC UI.
Additional context