Configure Eye Verify Custom Authenticator

Provide Eye Verify specific scripts to Extension Engine

In order to configure Eye Verify as a Custom Authenticator you first need to provide Eye Verify specific scripts to the Extension Engine. Please check API description in the Extension Engine documentation in order to successfully upload following scripts:

Registration script

Upload a following registration script with the name registerAuthenticator.js :

function execute(data, userId) {
  LOG.info("Registration of Eyeverify Custom Authenticator for a user with id: " + userId);
  return {
    status: 2000,
    registrationData: data
  }
}

Authentication script

Upload a following authentication script with the name authenticationComplete.js :

function execute(data, userId, registrationData) {
  LOG.info("Authentication of Eyeverify Custom Authenticator for a user with id: " + userId);
  var invalidUserKey = !data.equals(registrationData);
  if(invalidUserKey){
    return {
      status: 4000
    }
  }
  return {
    status: 2000
  }
}