Test a sample cookie application

Testing a cookie application involves validating application cookies and overall testing. Simulation allows you to validate cookie contents before testing with the back end protected web resource.

To configure an application for header or simulation testing:

  1. Navigate to the Access Gateway Admin UI console
  2. From the Topology tab or the Applications tab, open the application.
  3. Select the Settings pane.
  4. Expand the Essentials tab.
  5. Note the current value of Protected Web Resource.
  6. Change the Protected Web Resource field to:
    Value Behavior
    http://header.service.spgw When running a test, this displays information about the header, cookie, session, and other information.
  7. Clear the Customize checkbox to disable the post-login URL.
  8. Expand the Advanced tab.
  9. Enable Debug mode.
  10. Click Done.

You can configure Access Gateway Management console to generate a running display of all system log messages.

  1. Open a terminal and use Secure Shell (SSH) to connect to the Access Gateway Management console.
  2. Enter 4 - Monitoring.
  3. Enter 2 - Enable Debug.
  4. Enter 1 - Monitor logs. This starts the running display of all log messages.
  5. Return to the Access Gateway Admin UI console console. You can test your app and examine the results in the running logs.
  6. Enter Ctrl-c to exit the log display.

See Monitor for details about monitoring, including a list of available commands.

  1. Click the Applications tab.
  2. On the row that contains the app, click Go to application > SP Initiated.
  3. Click Go to application > IDP Initiated to run the tests.
  4. Repeat testing using each specialized policy URI.
  5. Disable debugging when you're finished.

Completed application testing as required.

Display debug statements at the command line

  1. Go to the Access Gateway Management console.
  2. Enter [Ctrl]-[c] to exit the log display.
  3. Enter 3 - Disable debug.
  4. Exit the command-line console.

App debug is enabled

  1. Go to the Access Gateway Admin UI console.
  2. Go to the app you're testing.
  3. Expand the Setting tab.
  4. Expand the Essentials tab.
  5. Return the Protected Web Resource field back to its original value.
  6. Expand the Advanced tab.
  7. Set the Debug toggle to Disable.
  8. Save your changes.