|
28 | 28 | <section>
|
29 | 29 | <title>Workbench Authentication</title>
|
30 | 30 |
|
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> |
33 | 33 |
|
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><security-domain name="other" cache-type="default"> |
40 |
| - <authentication> |
41 |
| - <login-module code="UsersRoles" flag="required"> |
42 |
| - <module-option name="usersProperties" value="${jboss.server.config.dir}/users.properties"/> |
43 |
| - <module-option name="rolesProperties" value="${jboss.server.config.dir}/roles.properties"/> |
44 |
| - </login-module> |
45 |
| - </authentication> |
46 |
| -</security-domain></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 | + <security-domain name="other" cache-type="default"> |
| 41 | + <authentication> |
| 42 | + <login-module code="Remoting" flag="optional"> |
| 43 | + <module-option name="password-stacking" value="useFirstPass"/> |
| 44 | + </login-module> |
| 45 | + <login-module code="RealmDirect" flag="required"> |
| 46 | + <module-option name="password-stacking" value="useFirstPass"/> |
| 47 | + </login-module> |
| 48 | + </authentication> |
| 49 | + </security-domain> |
| 50 | + </programlisting> |
47 | 51 |
|
48 |
| - <para>By default, these configuration files contain the following users:</para> |
| 52 | + <programlisting> |
| 53 | + <security-realm name="ApplicationRealm"> |
| 54 | + <authentication> |
| 55 | + <local default-user="$local" allowed-users="*" skip-group-loading="true"/> |
| 56 | + <properties path="users.properties" relative-to="jboss.server.config.dir"/> |
| 57 | + </authentication> |
| 58 | + <authorization> |
| 59 | + <properties path="roles.properties" relative-to="jboss.server.config.dir"/> |
| 60 | + </authorization> |
| 61 | + </security-realm> |
| 62 | + </programlisting> |
| 63 | + |
| 64 | + <para>These are the default users:</para> |
49 | 65 |
|
50 | 66 | <table>
|
51 | 67 | <title>Default users</title>
|
|
122 | 138 | <entry>IT,HR,Accounting</entry>
|
123 | 139 | </row>
|
124 | 140 | </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> |
125 | 149 | </tgroup>
|
126 | 150 | </table>
|
127 | 151 |
|
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 | + |
132 | 171 | </section>
|
133 | 172 |
|
134 | 173 | <section>
|
|
0 commit comments