keycloak-user-migration
keycloak-user-migration copied to clipboard
Provider isn't used when configured on imported realm
I found a strange behavior, and I can't figure out from the code if it's an extension problem or a Keycloak problem.
To reproduce:
- add and configure the migration provider in the User federation section of the Keycloak Admin UI
- test it by logging in to the account console with a user in the remote system -- migration provider gets used and works.
- export the realm as json
- delete the realm
- import the realm from the json in step 3
- test again like step 2 -- nothing indicates the migration extension is getting used. normal user not found error.
- deactivate and activate the migration provider in the Keycloak Admin UI
- test again like step 2 -- migration provider gets used and works
Has anyone seen a similar behavior? Any ideas why it would need to get disabled/enabled after a realm import so it gets used?
Hi! Does it show the plugin as active and enabled in the "User federation" tab after step 5? Is the configuration (endpoint URLs etc) correct right after importing? I think it might be a Keycloak bug.
Closing due to inactivity. Let me know if you want me to reopen this.