Giter Site home page Giter Site logo

bonita-community-cas's Introduction

bonita-community-cas

CAS integration for bonita community 7.7.4

  1. Download Apereo Java CAS client and copy cas-client-core-3.5.1-SNAPSHOT.jar to server/lib.

  2. 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>
        <url-pattern>/login.jsp</url-pattern>
    </filter-mapping>
  1. setup/setup.sh pull

  2. Add authentication.service.ref.name=casAuthenticationService to setup/platform_conf/current/tenants/1/tenant_engine/bonita-tenant-community-custom.properties and setup/platform_conf/current/tenant_template_engine/bonita-tenant-community-custom.properties.

  3. Add <bean id="casAuthenticationService" class="com.mybonita.cas.CASAuthenticationService"/> to setup/platform_conf/current/tenant_template_engine/bonita-tenants-custom.xml and setup/platform_conf/current/tenants/1/tenant_engine/bonita-tenants-custom.xml between <beans></beans>.

  4. Add auth.AuthenticationManager = com.mybonita.cas.CASAuthenticationManagerImpl to setup/platform_conf/current/tenant_template_portal/authenticationManager-config.properties and setup/platform_conf/current/tenants/1/tenant_portal/authenticationManager-config.properties.

  5. setup/setup.sh push

  6. Add console-common-7.7.4.jar and console-server-7.7.4.jar from server/webapps/bonita/WEB-INF/lib to your local maven repo. See pom.xml comments.

  7. Compile and copy this project jar to server/webapps/bonita/WEB-INF/lib.

  8. Open https://your.bonita.server/bonita/cas.

bonita-community-cas's People

Contributors

sparse91 avatar victorjss avatar wanddy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.