Tech Blog‎ > ‎Geek corner‎ > ‎

LDAP Authentication Provider

posted Sep 12, 2016, 9:33 AM by Unknown user   [ updated Sep 12, 2016, 2:22 PM by Laura Carrubba ]

CA Live API Creator provides a built-in authentication service for both the admin service (for example, 'sa') and the user-admin. You can replace the authentication service with a JavaScript library. For more information about how to replace the authentication service, see Create Custom Authentication Providers using JavaScript. The B2B example provides a great example of a custom authentication service and is included with the self-contained, single-user version of Live API Creator based on Jetty.

A sample LDAP Java library and JavaScript has been posted to GitHub here. The process requires a modification to the Java code to match the corporate specification of the internal LDAP system. Once completed and tested, create a JAR file and copy this to your /lib directory. The next step is to load the JavaScript user library into LAC and then to create a new authentication provider service using the new JavaScript library and JAR file.

Once the new authentication provider service is in place and tested, it can be used by both the internal admin service and the end user access of REST API endpoints.