You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the role string is splitter on "," to collect a list.
Here is the result of the above config in Keycloak
At the end of the day, we have n+1 role ("reader", "writer" and not "reader,writer") so I guess all the tests work pretty fine.
My 2 cts are the UserRepresentation is creating behind the scene the correct roles hiding the lack of list management in the RoleRepresentation part.
Expected behavior
When providing a comma-separated list of roles, Dev Services should create each role, and not 1 is the exact text representation.
Actual behavior
No response
How to Reproduce?
See the bug description
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
There is an inconsistency in the way roles are created and managed in Keycloack Dev Services.
Given the following config
When the realm is created, the method
createDefaultRealm
is invoked. First thecreateRealmRep()
method will be invoked. This is how roles are fetched:quarkus/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java
Line 608 in a43f46e
This means a unique role "reader,writer" will be created where the original intent was to create 2 roles ("reader", "writer").
After creating the roles,
createDefaultRealm
will create the user and callgetUserRoles
. This is how roles are fetched for a userquarkus/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java
Line 584 in a43f46e
Here the role string is splitter on "," to collect a list.
Here is the result of the above config in Keycloak
At the end of the day, we have n+1 role ("reader", "writer" and not "reader,writer") so I guess all the tests work pretty fine.
My 2 cts are the UserRepresentation is creating behind the scene the correct roles hiding the lack of list management in the RoleRepresentation part.
Expected behavior
When providing a comma-separated list of roles, Dev Services should create each role, and not 1 is the exact text representation.
Actual behavior
No response
How to Reproduce?
See the bug description
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: