Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To enable simulation mode, perform the following steps:

  1. Implement an authentication mechanism for the simulation user in a simple Java class.

    Note

    Note: Refer CTAuthenticationProviderSimulatingUser.java for your reference.


  2. Specify the authentication provider class in the securityconfig.property file as shown.

    Code Block
    languagejava
    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


    Note

    Note: Refer securityconfig.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.

  3. 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.



...