diff --git a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/assembly.xml b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/assembly.xml index ea896e6ea2..b5f65936ce 100755 --- a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/assembly.xml +++ b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/assembly.xml @@ -50,5 +50,9 @@ ../../shared-cli/adapter-install.cli bin + + cli/adapter-install-offline.cli + bin + diff --git a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/cli/adapter-install-offline.cli b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/cli/adapter-install-offline.cli new file mode 100644 index 0000000000..8b55142e11 --- /dev/null +++ b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/cli/adapter-install-offline.cli @@ -0,0 +1,5 @@ +embed-server --server-config=standalone.xml +/subsystem=security/security-domain=keycloak/:add +/subsystem=security/security-domain=keycloak/authentication=classic/:add(login-modules=[{ "code" => "org.keycloak.adapters.jboss.KeycloakLoginModule","flag" => "required"}]) +/extension=org.keycloak.keycloak-adapter-subsystem/:add(module=org.keycloak.keycloak-adapter-subsystem) +/subsystem=keycloak:add \ No newline at end of file diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/jboss-adapter.xml b/docbook/auth-server-docs/reference/en/en-US/modules/jboss-adapter.xml index e9b9610d0b..80abbcf96c 100755 --- a/docbook/auth-server-docs/reference/en/en-US/modules/jboss-adapter.xml +++ b/docbook/auth-server-docs/reference/en/en-US/modules/jboss-adapter.xml @@ -27,7 +27,7 @@
Adapter Installation - Adapters are no longer included with the appliance or war distribution.Each adapter is a separate download on + Adapters are no longer included with the appliance or war distribution. Each adapter is a separate download on the Keycloak download site. They are also available as a maven artifact. @@ -74,6 +74,13 @@ $ jboss-cli.sh -c --file=adapter-install.cli The script will add the extension, subsystem, and optional security-domain as described below. + + For more recent versions of WildFly there's also a offline CLI script that can be used to install the adapter while the server is not running: + +$ cd $JBOSS_HOME/bin +$ jboss-cli.sh -c --file=adapter-install-offline.cli + +