Setting up Passthrough Login
The application allows Administrators to create special URLs that allow users to access parts of the system without having to login. This is fully configurable and can be setup as per the business requirements. This is ideal for following contractors, visitors, or members of the public to log Incidents or Hazards without having the need to self-register or create new user accounts.
Steps to setup
Enable the feature flag:
- In the config.properties (under ..\SAI360\config\), add the below feature flag and save the file
mainConfig.EnablePassthroughLogin=true
- Restart Tomcat service.
- Under Global Settings Authentication tab, tick the checkbox
Allow URL passthrough Authentication and save.
|
Allow URL Passthrough Authentication is only applicable for Basic Authentication and Dual Login authentication methods (with 2FA disabled).
|
- Perform a web application publish and restart Tomcat service.
- Setup a generic user account:
Navigate to Admin Security Users and create a new user account.
Populate all the required mandatory fields.
Tick Allow URL Passthrough Login option for that user.
The user must be granted the security roles they require in order to access the forms. For example, if you wish for that user to bypass the authentication process for creating new Incidents and Hazards, they need to be granted the relevant Incident and Hazard security roles.
- To setup the passthrough URL, the system requires the username and password, separated by a colon ‘:’ as arguments in the URL.
The arguments need to be base64 encoded.
Example:
URL Argument
|
Base64 Encoded
|
Contractor@evotix.com:Monday!@#
|
Q29udHJhY3RvckBldm90aXguY29tOk1vbmRheSFAIw==
|
- Passthrough URLs can be setup for any component.
To create a new Incident record, the URL is as below:
http://<WEBAPP_URL>/new/Incident?passthrough=Q29udHJhY3RvckBldm90aXguY29tOk1vbmRheSFAIw==
where passthrough is the parameter name which has the encoded username and password
Another example below to open a specific Audit record:
http://<WEBAPP_URL>/view/Audits/AUD-0000060? passthrough= Q29udHJhY3RvckBldm90aXguY29tOk1vbmRheSFAIw==
- If the Form has the Render Unwrapped option enabled (set up in the Form Properties), you can pass in that parameter into the URL and the system will generate a form with no menu, top bar and close buttons.
This is particularly useful when the requirement is to give external contractors/visitors access to a form for a specific task (log an Incident or Hazard) without confusing them with the various menu options.
Example URL:
http://<WEBAPP_URL>/new/Incident?passthrough=Q29udHJhY3RvckBldm90aXguY29tOk1vbmRheSFAIw== &unwrap=true
|