CAS integration for bonita community 7.7.4
-
Download Apereo Java CAS client and copy
cas-client-core-3.5.1-SNAPSHOT.jar
toserver/lib
. -
Add this filter to
server/webapps/bonita/WEB-INF/web.xml
:
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://your.cas.server/cas</param-value>
</init-param>
<init-param>
<param-name>service</param-name>
<param-value>https://your.bonita.server/bonita/loginservice</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/cas</url-pattern>
</filter-mapping>
-
setup/setup.sh pull
-
Add
authentication.service.ref.name=casAuthenticationService
tosetup/platform_conf/current/tenants/1/tenant_engine/bonita-tenant-community-custom.properties
andsetup/platform_conf/current/tenant_template_engine/bonita-tenant-community-custom.properties
. -
Add
<bean id="casAuthenticationService" class="com.mybonita.cas.CASAuthenticationService"/>
tosetup/platform_conf/current/tenant_template_engine/bonita-tenants-custom.xml
andsetup/platform_conf/current/tenants/1/tenant_engine/bonita-tenants-custom.xml
between<beans></beans>
. -
Add
auth.AuthenticationManager = com.mybonita.cas.CASAuthenticationManagerImpl
tosetup/platform_conf/current/tenant_template_portal/authenticationManager-config.properties
andsetup/platform_conf/current/tenants/1/tenant_portal/authenticationManager-config.properties
. -
setup/setup.sh push
-
Add
console-common-7.7.4.jar
andconsole-server-7.7.4.jar
fromserver/webapps/bonita/WEB-INF/lib
to your local maven repo. Seepom.xml
comments. -
Compile and copy this project jar to
server/webapps/bonita/WEB-INF/lib
. -
Open
https://your.bonita.server/bonita/cas
.