Loading...
Allows you to authenticate users with a custom JavaScript script. With this script you have access to source map variables, and can choose whether to send a challenged or failure response back to the client.
The default script simply allows all requests to pass.
Select the Script field to edit the JavaScript:
This script expects either a boolean ( true to accept the request, false to send back a failure response) or an AuthenticationResult object to be returned (for additional information, see User API) . There are three types of results you can return:
If a Challenged/Failure result is returned, the AuthenticationResult object also allows you to add custom headers to include on the HTTP response sent back to the client.
For more information on using JavaScript within Mirth® Connect by NextGen Healthcare, see Mirth Connect and JavaScript.