Custom Authentication Service

1
0
-1

In BonitaSoft site, in the section that explains about authentication services (http://documentation.bonitasoft.com/user-authentication-0#extraauth) is mentioned as follows: "In Subscription editions, Also it is possible to write your own authentication service. ". Could you tell me where is the documentation on creating a custom service to environments beyond those presented in the documentation (JAAS, LDAP, OAuth, CAS ...)?

Let's suppose that I want to authenticate with data from a text file. What steps should I follow? What are the required classes? Where to save the .jar created?

Environment:                 * BOS release: 6.3.6-Subscription-BonitaBPM                 * Type of Environment: Development                 * SO: Linux                 * Java Version: Oracle JDK 1.7                 * Container / App server - JBoss 5.x

Thank you ...

Bohne

1 answer

1
+3
-1
This one is the BEST answer!

You should:

  • Create a new Java class that implement GenericAuthenticationService. You can refer to AuthenticationServiceImpl for a reference implementation.
  • Package it as a jar file
  • Include the jar file in bonita.war (or in your application server lib folder where Bonita webapp can reach it)
  • Edit the <BONITA_HOME>/server/tenants/<TENANT_ID>/conf/services/cfg-bonita-authentication-impl.xml file and refer to your class instead of org.bonitasoft.engine.authentication.impl.AuthenticationServiceImpl

Comments

Submitted by hatziefstratiou on Thu, 03/29/2018 - 14:22

Hello,
where should the .jar rest on a wildfly bundle?

Notifications