2016-05-11 02:48:33 +00:00
2016-12-12 20:20:58 +00:00
=== Configuring the Subsystem
2016-05-11 02:48:33 +00:00
2016-12-12 20:20:58 +00:00
Now that you have copied the XML template from the Installation page, you need to paste this into the _standalone.xml_ file
that resides in the _standalone/configuration_ directory of the application server instance on which your application is deployed.
2016-05-11 02:48:33 +00:00
2016-12-12 20:20:58 +00:00
. Open the standalone/configuration/standalone.xml file and search for the following text:
+
2016-05-11 02:48:33 +00:00
[source,xml]
----
2016-06-02 10:14:03 +00:00
<subsystem xmlns="urn:jboss:domain:keycloak:1.1"/>
2016-05-11 02:48:33 +00:00
----
2016-12-12 20:20:58 +00:00
. Modify this to prepare it for pasting in your template from the Installation page:
+
2016-05-11 02:48:33 +00:00
[source,xml]
----
2016-06-02 10:14:03 +00:00
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
2016-05-11 02:48:33 +00:00
</subsystem>
----
2016-12-12 20:20:58 +00:00
. Within the <subsystem> element, paste in the template. It will look something like this:
+
2016-05-11 02:48:33 +00:00
[source,xml]
----
2016-06-02 10:14:03 +00:00
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
2016-05-11 02:48:33 +00:00
<secure-deployment name="WAR MODULE NAME.war">
<realm>demo</realm>
<auth-server-url>http://localhost:8180/auth</auth-server-url>
<public-client>true</public-client>
<ssl-required>EXTERNAL</ssl-required>
<resource>vanilla</resource>
</secure-deployment>
</subsystem>
----
2016-12-12 20:20:58 +00:00
. Change the *WAR MODULE NAME* text to *vanilla* as follows:
+
2016-05-11 02:48:33 +00:00
[source,xml]
----
2016-06-02 10:14:03 +00:00
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
2016-05-11 02:48:33 +00:00
<secure-deployment name="vanilla.war">
...
</subsystem>
----
2016-12-12 20:20:58 +00:00
. Reboot your application server.
. Go to http://localhost:8080/vanilla and click *login*. The {{book.project.name}} login page opens. You can log in using the user you created in the <<fake/../../first-realm/user.adoc#_create-new-user, Creating a New User>> chapter.
2016-05-11 02:48:33 +00:00