From 98bd0b003eff37c6542dee678e29d55a7a6d7fe6 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 8 Feb 2016 19:39:15 +0100 Subject: [PATCH] KEYCLOAK-2450 WildFly adapter script should support offline installation of adapter --- .../wildfly-adapter/wildfly-adapter-zip/assembly.xml | 4 ++++ .../wildfly-adapter-zip/cli/adapter-install-offline.cli | 5 +++++ .../reference/en/en-US/modules/jboss-adapter.xml | 9 ++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 distribution/adapters/wildfly-adapter/wildfly-adapter-zip/cli/adapter-install-offline.cli 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 + +