Add custom behaviors

Behaviors provide a specialized mechanism for handling unusual or unexpected conditions. They allow you to determine what to do in certain situations, like the following:

  • Sign out: Determine what happens when users sign out.
  • Error: Determine what to do when error messages appear.
  • Policy: Determine what to do when a policy denies access to an application.
  • Inactive or offline applications: Determine what to do if an application is unavailable.

To add custom behaviors to an application:

  1. Open the Access Gateway Admin UI console.
  2. Select the Application tab.
  3. In the row containing the previously created application, click Edit ( ).
  4. Expand the Behaviors section.
  5. Go to the Policy Denied section.
  6. Select Return 403 status code.
  7. Click Done.

Test the application

  1. In the row containing the application, click Go to applicationSP Initiated.

  2. Sign in to your Okta tenant using a valid account.
  3. Append /deny to the URL.
  4. Refresh the browser. If the user was in the Everyone group, then the request should return 403 Forbidden.

Related topics

Define application behaviors