2016-05-11 02:48:33 +00:00
=== Configure Subsystem
Now that you have copied the XML template from the `Installation` tab, you need to paste this into the _standalone.xml_ file
that lives in the _standalone/configuration_ directory of the application server instance your application is deployed on.
Open this file and search for the following text:
[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
----
Modify this a little bit to prepare it for pasting in your template from the `Installation` tab.
[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>
----
Within the `subsystem` element, paste in the template. It will look something like this:
[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>
<realm-public-key>MIIBIjANBgkqhkiG9B</realm-public-key>
<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>
----
Change the `WAR MODULE NAME` text to be `vanilla` as follows:
[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>
----
Reboot your application's server and now when visit http://localhost:8080/vanilla and hit the login button, you should
2016-05-11 20:39:45 +00:00
get the {{book.project.name}} login page. You can log in using the user you created in the <<fake/../../first-realm/user.adoc#_create-new-user, Create New User>> chapter.
2016-05-11 02:48:33 +00:00