keycloak-scim/getting_started/topics/secure-jboss-app/subsystem.adoc
2017-08-28 20:10:09 +02:00

51 lines
1.5 KiB
Text

=== Configuring the Subsystem
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.
. Open the standalone/configuration/standalone.xml file and search for the following text:
+
[source,xml]
----
<subsystem xmlns="urn:jboss:domain:keycloak:1.1"/>
----
. Modify this to prepare it for pasting in your template from the Installation page:
+
[source,xml]
----
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
</subsystem>
----
. Within the <subsystem> element, paste in the template. It will look something like this:
+
[source,xml]
----
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
<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>
----
. Change the *WAR MODULE NAME* text to *vanilla* as follows:
+
[source,xml]
----
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
<secure-deployment name="vanilla.war">
...
</subsystem>
----
. Reboot your application server.
. Go to http://localhost:8080/vanilla and click *login*. The {project_name} login page opens. You can log in using the user you created in the <<_create-new-user, Creating a New User>> chapter.