Default client scopes of standard clients do not get intialized on realm import causing 'Forbidden' error in the account console #10021
Labels
area/import-export
help wanted
kind/bug
Categorizes a PR related to a bug
priority/low
status/auto-bump
status/auto-expire
team/core-clients
Describe the bug
When I create a new realm, I only have to enter the name and the standard clients are created automatically and all available Default and Optional Client Scopes are assigned for each client.
When I export the realm (without group and roles and clients) , delete it and import it again, then the standard clients are created as well, but this time the Assigned Scopes are empty, which causes the 'Forbidden' error in the account console.
s. KEYCLOAK-16682
Since version 12.0.1
Version
18.0.0
Expected behavior
Actual behavior
How to Reproduce?
Anything else?
If I export the realm without group and roles, but with clients, delete it and import it again, then the Assigned Scopes for standard clients get initialized, but now they did not get all of their Roles assigned, e.g.:
Expected Roles:
Actual Roles:
The text was updated successfully, but these errors were encountered: