- Issue created by @paz61
- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
I don't think this way around will work. Migrating passwords is tricky anyway because you are dealing with different hashing algorithms and salts. Decoding passwords usually also isn't possible. For keycloak the password needs to exist in there, the one of Drupal is not used anymore once the user is linked to Keycloak and logs in through keycloak. I also believe you can't log in anymore through the default Drupal login UI once you're linked to keycloak.
"Automatically connect existing users" also works the other way around. When a user logs in via keycloak, the check is done and if a user exists, they are linked together.
I would opt for migrating users into drupal, and then set-up the users in keycloak with fresh passwords.