简体   繁体   中英

KeyCloak with Custom DB. Is it possible to back keycloak with cutom-db without keep syncing it with KeyCloak DB?

Is it possible to use keycloak with custom DB? Eg we have a database where we have all the users and their password. Can we use keycloak with that database or do we need to add each user to keycloak and have to keep our-user-db and keycloak-db in sync ?

The answer is YES. In User Federation , you can add LDAP or kerberos with Keycloak supported. And you can develop custom User Federation.

Custom Provider tells you can achieve your goal. But from here , it says you can migrate from early User Federation SPI. This User Federation SPI can be created in Keycloak 2.4.0 with the APIs at that version. On keycloak website, I just find 1.9.0 , it says there's a provider/federation-provider sample you can refer. Maybe you can try to find 2.4.0 bundle and sample to do your work.

After you create your User Federation SPI, then you refer here to migrate. You can choose to import or non-import.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM