Custom Authentication

The default authentication mode of the product is LDAP authentication using the active directory of the system. Authentication is required for adding a user in the Admin module and authenticating a user for Engage, Automation Studio, EnterprisePersonalAssistant and Decision Workbench.


In case you want to authenticate user with authentication type other than default LDAP authentication, you can implement your own custom authentication. Follow below step to write your own custom authentication.


Steps to implement custom authentication:

  1. To enable custom authentication update CustomAuthentication class in custom.js file in \app\Admin\middleware\authScheme
  2. CustomAuthentication has two methods. 
    1. First authenticate, username and password will be passed to this method. Validate it and return SUCCESS or ERROR.
    2. Second searchUser, this method will be called when a new user is to be added to AssistEdge. Username, password, and a list of user ids will be passed to this method. Validate username and password and then return user details for all the user ids passed.
  3. Once CustomAuthentication class is updated, update authentication scheme in scripts/auth.yml folder.

    NOTE:  

    Do not create static variable in the CustomAuthentication class.