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
When I run the keycloak-config-cli against a configuration that changes or deletes a clientScope previously present in the JSON config, that client scope is not deleted or modified.
Expected Behavior
Reading through the MANAGED documentation, I expected the scope that was originally created to have metadata that allowed keycloak-config-cli to identify that something changed and update or delete that client scope as appropriate. As it stands, if I delete the clientScope, the previously-created scope remains unchanged. If I change the name, it just adds a new second scope with the new name and leaves the original in place as well.
Steps To Reproduce
Create a configuration in a file conf/01_realm.json that creates a new Realm with one client scope:
Verify that the new realm "Test Realm" is created and has the provided scope "test.component.admin" - it does!
Rename the scope in the 01_realm.json file to "test.component.admin2" and rerun the docker command to apply it
Check again, and there are two scopes, "test.component.admin", and "test.component.admin2"
I've also tried deleting the scope from 01_realm.json leaving just clientScopes: [] (which my understanding of MANAGED docs means it should delete all managed clientScopes) but this doesn't do anything to the scopes previously created.
Environment
Keycloak Version: 25.0.6 (also checked with the latest v26 release)
keycloak-config-cli Version: docker tag latest-25 (also checked with latest-26)
Java Version: Uncertain, as I'm running an instance of Keycloak deployed using the Keycloak Operator inside a kubernetes cluster
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
When I run the keycloak-config-cli against a configuration that changes or deletes a clientScope previously present in the JSON config, that client scope is not deleted or modified.
Expected Behavior
Reading through the MANAGED documentation, I expected the scope that was originally created to have metadata that allowed keycloak-config-cli to identify that something changed and update or delete that client scope as appropriate. As it stands, if I delete the clientScope, the previously-created scope remains unchanged. If I change the name, it just adds a new second scope with the new name and leaves the original in place as well.
Steps To Reproduce
conf/01_realm.json
that creates a new Realm with one client scope:I've also tried deleting the scope from 01_realm.json leaving just
clientScopes: []
(which my understanding of MANAGED docs means it should delete all managed clientScopes) but this doesn't do anything to the scopes previously created.Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: