Keycloak-自定义SPI没有出现在列表中 [英] Keycloak - Custom SPI does not appear in list

查看:251
本文介绍了Keycloak-自定义SPI没有出现在列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Keycloak服务器制作了一个自定义SPI,现在我必须在管理控制台上对其进行配置.

I made a custom SPI for my keycloak server and now I have to configure it on the Admin console.

我通过手动安装将SPI作为模块添加,因此我将其与module.xml一起放在modules/{package-name}/main上;我还把放在standalone.xml上,并且也放在了keycloak-server子系统中.

I added the SPI as a module, with manual installation, so I have it on modules/{package-name}/main, with the module.xml; I have also put the on standalone.xml, and the also in the keycloak-server subsystem.

完成所有配置后,我然后转到管理控制台以配置自定义用户提供程序,它不会出现在列表中.

After all this configuration, I then go to the admin console to configure the custom user provider and it does not appear in the list.

我该怎么办?

推荐答案

我的最终解决方案是应用

My finally solution was applying the example from

https://github.com/thomasdarimont/keycloak-user-storage -provider-demo

并更改UserRepository以使EntityManager与数据库连接.

and changing the UserRepository for an EntityManager to connect with the database.

这篇关于Keycloak-自定义SPI没有出现在列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆