This component is mandatory to register every attack, and register who logs the portal.
Note: in a cluster, this procedure has to be done on each node on the Cluster.
1. Stop the Bonita Server
stop-bonita.[sh|.bat]
2. Copy the SecurityCar--Filter.jar
This library is available under the additionallib directory, in the ZIP file.
Copy it under the web application library:
/webapps/bonita/WEB-INF/lib
3. Reference the filter
Modify the /webapps/bonita/WEB-INF/web.xml, add these three components. Add it after an existing Filter in the XML.
<!-- SecurityCar Filter -->
<filter>
<filter-name>SecurityCarFilter</filter-name>
<filter-class>org.bonitasoft.securitycar.server.SecurityCarFilter</filter-class>
</filter>
<!-- SecurityCar mapping -->
<filter-mapping>
<filter-name>SecurityCarFilter</filter-name>
<url-pattern>/portal/*</url-pattern>
<url-pattern>/bonita/*</url-pattern>
</filter-mapping>
<!-- SecurityCar Listener -->
<listener>
<listener-class>org.bonitasoft.securitycar.server.SecurityCarListenerSession</listener-class>
</listener>
4. Restart the server
start-bonita.[sh|.bat]