KEYCLOAK-856 Rename wildfly-subsystem to keycloak-subsystem

This commit is contained in:
Stan Silvert 2014-11-24 16:52:16 -05:00
parent 34e18c176d
commit d53b01eb2b
59 changed files with 26 additions and 140 deletions

View file

@ -12,7 +12,7 @@
<xsl:template match="node()[name(.)='extensions']"> <xsl:template match="node()[name(.)='extensions']">
<xsl:copy> <xsl:copy>
<xsl:apply-templates select="node()|@*"/> <xsl:apply-templates select="node()|@*"/>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>

View file

@ -12,7 +12,7 @@
<excludes> <excludes>
<exclude>org/picketlink/**</exclude> <exclude>org/picketlink/**</exclude>
<exclude>org/keycloak/keycloak-undertow-adapter/**</exclude> <exclude>org/keycloak/keycloak-undertow-adapter/**</exclude>
<exclude>org/keycloak/keycloak-wildfly-subsystem/**</exclude> <exclude>org/keycloak/keycloak-subsystem/**</exclude>
<exclude>org/keycloak/keycloak-wildfly-adapter/**</exclude> <exclude>org/keycloak/keycloak-wildfly-adapter/**</exclude>
</excludes> </excludes>
<outputDirectory>modules</outputDirectory> <outputDirectory>modules</outputDirectory>

View file

@ -12,7 +12,7 @@
<excludes> <excludes>
<exclude>org/picketlink/**</exclude> <exclude>org/picketlink/**</exclude>
<exclude>org/keycloak/keycloak-undertow-adapter/**</exclude> <exclude>org/keycloak/keycloak-undertow-adapter/**</exclude>
<exclude>org/keycloak/keycloak-wildfly-subsystem/**</exclude> <exclude>org/keycloak/keycloak-subsystem/**</exclude>
<exclude>org/keycloak/keycloak-wildfly-adapter/**</exclude> <exclude>org/keycloak/keycloak-wildfly-adapter/**</exclude>
</excludes> </excludes>
<outputDirectory>modules/system/layers/base</outputDirectory> <outputDirectory>modules/system/layers/base</outputDirectory>

View file

@ -83,8 +83,8 @@
<maven-resource group="org.keycloak" artifact="keycloak-wildfly-adapter"/> <maven-resource group="org.keycloak" artifact="keycloak-wildfly-adapter"/>
</module-def> </module-def>
<module-def name="org.keycloak.keycloak-wildfly-subsystem"> <module-def name="org.keycloak.keycloak-subsystem">
<maven-resource group="org.keycloak" artifact="keycloak-wildfly-subsystem"/> <maven-resource group="org.keycloak" artifact="keycloak-subsystem"/>
</module-def> </module-def>
<module-def name="org.keycloak.keycloak-as7-subsystem"> <module-def name="org.keycloak.keycloak-as7-subsystem">
<maven-resource group="org.keycloak" artifact="keycloak-as7-subsystem"/> <maven-resource group="org.keycloak" artifact="keycloak-as7-subsystem"/>

View file

@ -49,7 +49,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-wildfly-subsystem</artifactId> <artifactId>keycloak-subsystem</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -214,7 +214,7 @@
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/modules/org/keycloak/keycloak-wildfly-subsystem/main/auth-server</outputDirectory> <outputDirectory>${project.build.directory}/modules/org/keycloak/keycloak-subsystem/main/auth-server</outputDirectory>
</artifactItem> </artifactItem>
</artifactItems> </artifactItems>
</configuration> </configuration>

View file

@ -22,7 +22,7 @@
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--> -->
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-wildfly-subsystem"> <module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-subsystem">
<properties> <properties>
<property name="keycloak-version" value="${project.version}"/> <property name="keycloak-version" value="${project.version}"/>
<property name="auth-server-exploded" value="false"/> <property name="auth-server-exploded" value="false"/>

View file

@ -41,28 +41,12 @@ $ unzip keycloak-as7-adapter-dist.zip
After adding the Keycloak modules, you must then enable the Keycloak Subsystem within your app server's server configuration: After adding the Keycloak modules, you must then enable the Keycloak Subsystem within your app server's server configuration:
<literal>domain.xml</literal> or <literal>standalone.xml</literal>. <literal>domain.xml</literal> or <literal>standalone.xml</literal>.
</para> </para>
<para>For Wildfly: <para>
<programlisting><![CDATA[ <programlisting><![CDATA[
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
]]>
</programlisting>
</para>
<para>For JBoss AS 7.1.1 and EAP 6.x:
<programlisting><![CDATA[
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
... ...
</extensions> </extensions>
@ -74,7 +58,7 @@ $ unzip keycloak-as7-adapter-dist.zip
</programlisting> </programlisting>
</para> </para>
<para> <para>
Finally, for both AS7, EAP 6.x, and Wildfly installations you must specify a shared keycloak security domain. Finally, you must specify a shared keycloak security domain.
This security domain should be used with EJBs and other components when you need the security context created This security domain should be used with EJBs and other components when you need the security context created
in the secured web tier to be propagated to the EJBs (other EE component) you are invoking. Otherwise in the secured web tier to be propagated to the EJBs (other EE component) you are invoking. Otherwise
this configuration is optional. this configuration is optional.

View file

@ -57,12 +57,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
... ...
</extensions> </extensions>
@ -71,21 +69,6 @@ For Wildfly:
... ...
</profile> </profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
Step 2: Boot Keycloak Server Step 2: Boot Keycloak Server
--------------------------------------- ---------------------------------------
Where you go to start up the Keycloak Server depends on which distro you installed. Where you go to start up the Keycloak Server depends on which distro you installed.

View file

@ -37,7 +37,7 @@ Next configure the Keycloak adapter by editing `standalone/configuration/standal
<extensions> <extensions>
.... ....
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
</extensions> </extensions>
You also need to add realm config to the same file. Add a new child-element to `<profile>`: You also need to add realm config to the same file. Add a new child-element to `<profile>`:

View file

@ -45,12 +45,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
... ...
</extensions> </extensions>
@ -59,21 +57,6 @@ For Wildfly:
... ...
</profile> </profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
Boot Keycloak Server Boot Keycloak Server
--------------------------------------- ---------------------------------------
Where you go to start up the Keycloak Server depends on which distro you installed. Where you go to start up the Keycloak Server depends on which distro you installed.

View file

@ -45,12 +45,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
... ...
</extensions> </extensions>
@ -59,21 +57,6 @@ For Wildfly:
... ...
</profile> </profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
Boot Keycloak Server Boot Keycloak Server
--------------------------------------- ---------------------------------------
Where you go to start up the Keycloak Server depends on which distro you installed. Where you go to start up the Keycloak Server depends on which distro you installed.

View file

@ -45,26 +45,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
... ...
</extensions> </extensions>

View file

@ -45,26 +45,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
... ...
</extensions> </extensions>

View file

@ -45,12 +45,10 @@ For JBoss AS 7.1.1:
Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's Unzipping the adapter ZIP only installs the JAR files. You must also add the Keycloak Subsystem to the server's
configuration (standalone/configuration/standalone.xml). configuration (standalone/configuration/standalone.xml).
For Wildfly:
<server xmlns="urn:jboss:domain:1.4"> <server xmlns="urn:jboss:domain:1.4">
<extensions> <extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/> <extension module="org.keycloak.keycloak-subsystem"/>
... ...
</extensions> </extensions>
@ -59,19 +57,6 @@ For Wildfly:
... ...
</profile> </profile>
For JBoss 7.1.1 and EAP 6.x:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-as7-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
Boot Keycloak Server Boot Keycloak Server

View file

@ -24,8 +24,8 @@
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<artifactId>keycloak-wildfly-subsystem</artifactId> <artifactId>keycloak-subsystem</artifactId>
<name>Keycloak Wildfly Subsystem</name> <name>Keycloak Subsystem</name>
<description/> <description/>
<packaging>jar</packaging> <packaging>jar</packaging>

View file

@ -28,7 +28,7 @@ import org.jboss.modules.ModuleLoadException;
* @author Stan Silvert ssilvert@redhat.com (C) 2014 Red Hat Inc. * @author Stan Silvert ssilvert@redhat.com (C) 2014 Red Hat Inc.
*/ */
public class Environment { public class Environment {
private static final ModuleIdentifier KEYCLOAK_SUBSYSTEM = ModuleIdentifier.create("org.keycloak.keycloak-wildfly-subsystem"); private static final ModuleIdentifier KEYCLOAK_SUBSYSTEM = ModuleIdentifier.create("org.keycloak.keycloak-subsystem");
private static final boolean isWildFly = findIsWildFly(); private static final boolean isWildFly = findIsWildFly();

View file

@ -54,7 +54,7 @@ import org.jboss.modules.ModuleLoadException;
*/ */
public class AuthServerUtil { public class AuthServerUtil {
private static final ModuleIdentifier KEYCLOAK_SUBSYSTEM = ModuleIdentifier.create("org.keycloak.keycloak-wildfly-subsystem"); private static final ModuleIdentifier KEYCLOAK_SUBSYSTEM = ModuleIdentifier.create("org.keycloak.keycloak-subsystem");
private final String deploymentName; private final String deploymentName;
private final Module subsysModule; private final Module subsysModule;
@ -84,7 +84,7 @@ public class AuthServerUtil {
private URI findAuthServerUri() throws IllegalStateException { private URI findAuthServerUri() throws IllegalStateException {
try { try {
URL subsysJar = this.subsysModule.getExportedResource("keycloak-wildfly-subsystem-" + this.keycloakVersion + ".jar"); URL subsysJar = this.subsysModule.getExportedResource("keycloak-subsystem-" + this.keycloakVersion + ".jar");
File subsysDir = new File(subsysJar.toURI()).getParentFile(); File subsysDir = new File(subsysJar.toURI()).getParentFile();
File authServerDir = new File(subsysDir, "auth-server"); File authServerDir = new File(subsysDir, "auth-server");
if (this.isAuthServerExploded) { if (this.isAuthServerExploded) {
@ -106,7 +106,7 @@ public class AuthServerUtil {
op.get(PERSISTENT).set(false); // prevents writing this deployment out to standalone.xml op.get(PERSISTENT).set(false); // prevents writing this deployment out to standalone.xml
if (authServerUri == null) { if (authServerUri == null) {
throw new OperationFailedException("Keycloak Auth Server WAR not found in keycloak-wildfly-subsystem module"); throw new OperationFailedException("Keycloak Auth Server WAR not found in keycloak-subsystem module");
} }
op.get(CONTENT).add(makeContentItem()); op.get(CONTENT).add(makeContentItem());

View file

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<!-- Template used by WildFly build when directed to include Keycloak subsystem in a configuration. --> <!-- Template used by WildFly build when directed to include Keycloak subsystem in a configuration. -->
<config> <config>
<extension-module>org.keycloak.keycloak-wildfly-subsystem</extension-module> <extension-module>org.keycloak.keycloak-subsystem</extension-module>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"> <subsystem xmlns="urn:jboss:domain:keycloak:1.0">
<?WILDFLY-WEB-CONSOLE-CONFIG?> <?WILDFLY-WEB-CONSOLE-CONFIG?>
</subsystem> </subsystem>

View file

@ -23,7 +23,7 @@
<module>jetty</module> <module>jetty</module>
<module>undertow</module> <module>undertow</module>
<module>wildfly-adapter</module> <module>wildfly-adapter</module>
<module>wildfly-subsystem</module> <module>keycloak-subsystem</module>
<module>js</module> <module>js</module>
<module>installed</module> <module>installed</module>
<module>admin-client</module> <module>admin-client</module>