keycloak-scim/topics/secure-jboss-app/subsystem.adoc

50 lines
1.5 KiB
Text
Raw Normal View History

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]
----
<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]
----
<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]
----
<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>
----
Change the `WAR MODULE NAME` text to be `vanilla` as follows:
[source,xml]
----
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
2016-05-11 02:48:33 +00:00
<secure-deployment name="vanilla.war">
...
</subsystem>
----
2016-06-08 09:59:49 +00:00
Reboot your application's server and now when you 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