CTE – 4226 Simulator Mode
Canvas has introduced a simulator mode to address the need to logon and mimic the application behaviour to troubleshoot issues faced by the end-users. Simulation is one of the important methods that help analyse the workflow and easily verify, communicate and understand the practical experience of an end-user.
For example, a backend support staff may want to understand the erroneous workflow of the end-user; or may want to find out the navigation sequence of the end-user. Canvas addresses this situation and offers the simulation experience on the application built using Canvas. To use the simulation mode, the support staff must perform the following:
...
- Implement an authentication mechanism for the simulation user in a simple Java class.
Note: Refer for CTAuthenticationProviderSimulatingUser.java for your reference. Specify the authentication provider class in the securityconfig.property file as shown.
Code Block language java This is the default authentication provider that is to be used during Login / logout / re-authentication purposes.
AUTH_SERV_PROV_CLASS=com.intellectdesign.canvas.test.providers.CTAuthenticationProviderSimulatingUser
for
Note: Refersecurityconfig.properties for your reference.
This property maps the authentication provider that is to be used during logon, logoff and re-authentication purposes. In the example, the class that provides the authentication mechanism is CTAuthenticationProviderSimulatingUser.- Pass isSimulated flag as TRUE as a request parameter in the login request.
The following is a sample login request that shows the flag 'isSimulated' sent along with other login request parameters.
Anchor
The following log shows the audit of the simulation user: