Skip to content

Commit 3638b50

Browse files
romartincristianonicolai
authored andcommitted
JBPM-5082: Updated the authentication configuration section for the jbpm installer. (#161)
1 parent a7a94c3 commit 3638b50

File tree

1 file changed

+59
-20
lines changed

1 file changed

+59
-20
lines changed

jbpm-docs/src/main/docbook/en-US/Installer/Configuration.xml

Lines changed: 59 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,40 @@
2828
<section>
2929
<title>Workbench Authentication</title>
3030

31-
<para>The workbench web application is using the "default" security domain for authenticating
32-
and authorizing users (as specified in the WEB-INF/jboss-web.xml inside the WARs).</para>
31+
<para>The workbench web application is using the pre-installed <code>other</code> security domain for authenticating
32+
and authorizing users (as specified in the <code>WEB-INF/jboss-web.xml</code> inside the WARs).</para>
3333

34-
<para>The application server is configured by default to use properties files for specifying
35-
users. Note that this is for demo purposes only (as passwords and roles are stored in simple
36-
property files). The security domain is configured in the standalone.xml configuration file
37-
as follows:</para>
38-
39-
<programlisting>&lt;security-domain name="other" cache-type="default"&gt;
40-
&lt;authentication&gt;
41-
&lt;login-module code="UsersRoles" flag="required"&gt;
42-
&lt;module-option name="usersProperties" value="${jboss.server.config.dir}/users.properties"/&gt;
43-
&lt;module-option name="rolesProperties" value="${jboss.server.config.dir}/roles.properties"/&gt;
44-
&lt;/login-module&gt;
45-
&lt;/authentication&gt;
46-
&lt;/security-domain&gt;</programlisting>
34+
<para>The application server uses by default property files based realms - Please note that this configuration is
35+
intended only for demo purposes (users, roles and passwords are stored in simple property files on the filesystem).</para>
36+
37+
<para>Authentication is configured in the <code>standalone.xml</code> file as follows:</para>
38+
39+
<programlisting>
40+
&lt;security-domain name="other" cache-type="default"&gt;
41+
&lt;authentication&gt;
42+
&lt;login-module code="Remoting" flag="optional"&gt;
43+
&lt;module-option name="password-stacking" value="useFirstPass"/&gt;
44+
&lt;/login-module&gt;
45+
&lt;login-module code="RealmDirect" flag="required"&gt;
46+
&lt;module-option name="password-stacking" value="useFirstPass"/&gt;
47+
&lt;/login-module&gt;
48+
&lt;/authentication&gt;
49+
&lt;/security-domain&gt;
50+
</programlisting>
4751

48-
<para>By default, these configuration files contain the following users:</para>
52+
<programlisting>
53+
&lt;security-realm name="ApplicationRealm"&gt;
54+
&lt;authentication&gt;
55+
&lt;local default-user="$local" allowed-users="*" skip-group-loading="true"/&gt;
56+
&lt;properties path="users.properties" relative-to="jboss.server.config.dir"/&gt;
57+
&lt;/authentication&gt;
58+
&lt;authorization&gt;
59+
&lt;properties path="roles.properties" relative-to="jboss.server.config.dir"/&gt;
60+
&lt;/authorization&gt;
61+
&lt;/security-realm&gt;
62+
</programlisting>
63+
64+
<para>These are the default users:</para>
4965

5066
<table>
5167
<title>Default users</title>
@@ -122,13 +138,36 @@
122138
<entry>IT,HR,Accounting</entry>
123139
</row>
124140
</tbody>
141+
<tbody>
142+
<row>
143+
<entry>kieserver</entry>
144+
<entry>kieserver1!</entry>
145+
<entry>kie-server</entry>
146+
<entry></entry>
147+
</row>
148+
</tbody>
125149
</tgroup>
126150
</table>
127151

128-
<para>Authentication can be customized by editing the authentication and configuration files in the
129-
jbpm-installer/auth folder and/or by changing the standalone-*.xml files in the jbpm-installer folder. Note
130-
that you need to rerun the installer to make sure the modified files are copied and picked correctly.</para>
131-
152+
<para>Authentication can be customized by using any of the following options:</para>
153+
154+
<itemizedlist>
155+
<listitem>
156+
<para>The users and groups management screens on the workbench web application.</para>
157+
<para>Navigate into the workbench web application and use the
158+
menu <code>Home</code> -> <code>User management</code> / <code>Group management</code>
159+
entries.</para>
160+
</listitem>
161+
<listitem>
162+
<para>The <code>add-user</code> script that comes by default on Wildfly/EAP.</para>
163+
<para>Example for Linux platforms - run the following command and follow the script instructions:</para>
164+
<programlisting>/bin/sh $JBOSS_HOME/bin/add-user.sh
165+
--user-properties $JBOSS_HOME/standalone/configuration/users.properties
166+
--group-properties $JBOSS_HOME/standalone/configuration/roles.properties
167+
--realm ApplicationRealm</programlisting>
168+
</listitem>
169+
</itemizedlist>
170+
132171
</section>
133172

134173
<section>

0 commit comments

Comments
 (0)