我正在尝试实施SPI一个客户端策略来替换我在js.
我实现PolicyProvider了类似于this和PolicyProviderFactorylike this ,然后按照实现 SPI中的说明将我的复制jar到standalone/deployments
我可以在日志中看到 jar 已部署:
08:17:02,647 INFO [stdout] (MSC service thread 1-3) about to start org.keycloak.services.util.JsonConfigProvider$JsonScope@266abf6d
08:17:02,682 WARN [org.keycloak.services] (MSC service thread 1-3) KC-SERVICES0047: myEvListener (example.myProvider.EvListenerProviderFactory) is implementing the internal SPI eventsListener. This SPI is internal and may change without notice
08:17:02,692 WARN [org.keycloak.services] (MSC service thread 1-3) KC-SERVICES0047: myRolePolicy (example.myProvider.MyPolicyProviderFactory) is implementing the internal SPI policy. This SPI is internal and may change without notice
08:17:02,814 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "myPolicyProvider.jar" (runtime-name : "myPolicyProvider.jar")
现在我找不到使用我的实际创建客户端策略的方法SPI
在服务器信息中,我可以看到策略提供程序中列出的策略(my-role-policy
和):my-js-policy
如果有人能指出我正确的方向,我将不胜感激。
紫衣仙女
相关分类