Nevermind, got it...
D:\dev\server\keycloak-2.2.0.Final>bin\jboss-cli.bat
You are disconnected at the moment. Type 'connect' to connect to the server
or 'help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9990 /] /subsystem=keycloak-server:list-add(
index= name= value=
[standalone@localhost:9990 /] [standalone@localhost:9990 /]
/subsystem=keycloak-server:list-add(name=providers,value=module:com.acme.idm.keycloak.jms-forwarding-event-listener)
{"outcome" => "success"}
[standalone@localhost:9990 /] ls /subsystem=keycloak-server
spi
theme
master-realm-name=master
providers=[expression
"classpath:${jboss.home.dir}/providers/*","module:com.acme.idm.keycloak.idm-keycloak-ext-login-action","module:com.acme.idm.keycloak.jms-forwarding-event-listener"]
scheduled-task-interval=900
web-context=auth
Cheers,
Thomas
2016-09-19 14:59 GMT+02:00 Thomas Darimont <thomas.darimont(a)googlemail.com>:
Hello,
I'm current trying to migrate our Keycloak configuration from 2.1.0.Final
to 2.2.0.Final.
Since we have some custom extensions deployed as jboss-modules in Keycloak
I need to convert the configuration from "keycloak-server.json" to the
appropriate form in standalone-ha.xml.
I tried to do that via jboss-cli but I seem to miss something... I
currently don't see a way to
do that via the cli and since I currently don't want to fallback to XSLT I
wonder:
Does anyone have a hint for converting the providers configuration from:
keycloak-server.json:
{
"providers" : [ "classpath:${jboss.home.dir}/providers/*"
, "module:com.acme.idm.keycloak.
idm-keycloak-ext-login-action"
, "module:com.acme.idm.keycloak.jms-forwarding-event-listener" ]
...
to:
standalone-ha.xml:
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>auth</web-context>
<providers>
<provider>classpath:${jboss.home.dir}/providers/*</
provider>
<!-- insert the module references here -->
</providers>
...
???
Thanks in advance!
Cheers,
Thomas