Skip to content

Commit cc4e3c2

Browse files
document Wildfly setup
1 parent f12cbbd commit cc4e3c2

File tree

1 file changed

+13
-1
lines changed
  • snippets/authentication-filter-with-bypass

1 file changed

+13
-1
lines changed

snippets/authentication-filter-with-bypass/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To overcome this, you may use a special user and configure his credentials outsi
88

99
The AuthenticationFilter in the `engine-rest.war` now should check the user id from the request against this special user first and if its not found here, ask LDAP for the user.
1010

11-
### Setup
11+
### Tomcat Setup
1212
In the Tomcat shared engine it's quite easy to set up the bypass.
1313

1414
1. Build the jar file with `mvn clean install`.
@@ -26,6 +26,7 @@ In the Tomcat shared engine it's quite easy to set up the bypass.
2626
<param-value>com.camunda.consulting.rest.auth.AuthenticationProviderWithBypass</param-value>
2727
</init-param>
2828
<async-supported>true</async-supported>
29+
</filter>
2930
...
3031
```
3132
4. Create a file named `bypassUser.properties` in the configuration folder of the tomcat server: `camunda-bpm-ee-tomcat-7.10.0\server\apache-tomcat-9.0.12\conf\`. Here is an example: [bypassUser.properties](src/test/resources/bypassUser.properties).
@@ -45,6 +46,17 @@ INFO [localhost-startStop-1] com.camunda.consulting.rest.auth.AuthenticationProv
4546
05-Sep-2019 22:03:06.360 FEIN [http-nio-8080-exec-7] com.camunda.consulting.rest.auth.AuthenticationFilterWithBypass.setAuthenticatedUser set user and group from bypassUser
4647
```
4748

49+
### Wildfly setup
50+
1. Change the lines 37-42 of the AuthenticationProviderwithBypass to
51+
```
52+
String bypassConfigFileLocation = System.getProperty("jboss.server.config.dir") + File.separator + BYPASS_USER_CONFIG_FILE_NAME;
53+
```
54+
55+
2. Same as Tomcat above.
56+
3. Same as Tomcat above.
57+
4. Create a file named `bypassUser.properties` in the configuration folder of the wildfly server: `camunda-bpm-ee-wildfly-7.10.0\server\wildfly-14.0.1-Final\configuration\`. Here is an example: [bypassUser.properties](src/test/resources/bypassUser.properties).
58+
5. to 7. Same as Tomcat above.
59+
4860
### How it works
4961
The configuration file read on startup and the values a held in main memory until the server is restarted. To change the password, you have to restart the tomcat server.
5062

0 commit comments

Comments
 (0)