keycloak-user-migration icon indicating copy to clipboard operation
keycloak-user-migration copied to clipboard

Provider isn't used when configured on imported realm

Open xgp opened this issue 1 year ago • 1 comments

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:

  1. add and configure the migration provider in the User federation section of the Keycloak Admin UI
  2. test it by logging in to the account console with a user in the remote system -- migration provider gets used and works.
  3. export the realm as json
  4. delete the realm
  5. import the realm from the json in step 3
  6. test again like step 2 -- nothing indicates the migration extension is getting used. normal user not found error.
  7. deactivate and activate the migration provider in the Keycloak Admin UI
  8. 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?

xgp avatar Apr 25 '23 20:04 xgp

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.

daniel-frak avatar Jun 02 '23 17:06 daniel-frak

Closing due to inactivity. Let me know if you want me to reopen this.

daniel-frak avatar May 29 '24 16:05 daniel-frak