简体   繁体   English

带有自定义数据库的KeyCloak。 是否可以在不与KeyCloak DB保持同步的情况下使用cutom-db支持keycloak?

[英]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? 可以将keycloak与自定义数据库一起使用吗? 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 ? 我们可以将keycloak与该数据库一起使用,还是需要将每个用户添加到keycloak中,并且必须使our-user-db和keycloak-db保持同步?

The answer is YES. 答案是肯定的。 In User Federation , you can add LDAP or kerberos with Keycloak supported. User Federation ,您可以添加支持Keycloak的LDAP或kerberos。 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. 但是从这里开始 ,它说您可以从早期的 User Federation SPI迁移。 This User Federation SPI can be created in Keycloak 2.4.0 with the APIs at that version. 可以在Keycloak 2.4.0中使用该版本的API创建该用户联合SPI。 On keycloak website, I just find 1.9.0 , it says there's a provider/federation-provider sample you can refer. 在keycloak网站上,我只找到1.9.0 ,它说有一个供您参考的提供者/联邦提供者示例。 Maybe you can try to find 2.4.0 bundle and sample to do your work. 也许您可以尝试找到2.4.0捆绑包和样品来完成您的工作。

After you create your User Federation SPI, then you refer here to migrate. 创建用户联合SPI后,请在此处引用进行迁移。 You can choose to import or non-import. 您可以选择导入或不导入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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