Manage application behaviors

Access Gateway supports managing application behaviors. Application behaviors define actions taken when an event occurs such as sign in, sign out, or in the case of an error.

To add a behavior:

  1. Navigate to Access Gateway Admin UI console.

  2. From the Topology tab or the Applications tab, open the application.
  3. In the Settings pane, expand Behaviors.

Choose one of the following custom behaviors:

Login

Allows you to define login endpoints that will aid in creating the user session.

Fields:

Field Description
Login Drop-down list box, behavior on login.
Login path Path to login endpoint URL.
Relative or fully qualified depending on use.
Executed after successful login.

Login supports the following:

Dropdown list box value Behavior

Login Path

Don't define login behavior Default.
No specialized login behavior.

Not applicable.

Use Okta Access Gateway login page When selected, Access Gateway shows the auth module login page.

Valid relative path in the protected application.


Auth module must refer to a previously defined auth module.

Use Application login page When selected, use the associated unprotected path to an application hosted login page.

Valid relative path in the protected application.

Define a custom login URL When selected, Access Gatewayforwards the user to Custom URL on login.

Login Path must contain a valid relative path in the protected application.
Custom URL must contain a valid fully qualified URL executed after successful login.

Logout

Allows you to define logout endpoints that will aid in destroying the user session.

Fields:

Field Description
Logout Dropdown list box, behavior on logout.
Logout path Path to relative logout endpoint URL.
Single Logout When enabled, destroy both the Access Gateway and Okta session. When disabled to destroy the Access Gateway session.  
Default: enabled.

Dropdown list box value

Behavior

End page displayed

Show Logout page

Default.
Reset Okta and Access Gateway sessions based on value of Single Logout toggle.


After session clean up, Access Gateway will display the Access Gateway logout page.

Show Login page

When selected, reset Okta and Access Gateway sessions based on value of Single logout toggle.

After session clean up, Access Gateway will display the Access Gateway login.

Use Application Logout page

When selected, destroy Okta and Access Gateway sessions based on value of Single Logout toggle.
Note: The value of Logout path must be a valid relative path in the protected application.

After session clean up, Access Gateway displays the application's logout page.
You can use this option if your application already has a logout page or if a custom logic is required for actions taken after the end user logs out. For example, clearing sessions in a third-party service or writing to an external audit log.

Define a custom Logout URL

When selected, Access Gateway does not destroy the session and only redirects to the specified URL.
Note: The value of the Logout path must be a fully qualified URL.

On logging out, redirect to the specified Post Login URL, which is expected to perform any required Okta or Access Gateway session cleanup.
This is the default URL that end users are directed to after logging out. By default, this is the Post Login value. Select the check box to customize.

Logout state transitions

Post Logout URL

Default URL end users are directed to after logout.
By default this will be the Post Login value.
Enable the field and enter an appropriate URL.
Can be used to redirect the user to a central logout page hosted by the customer, or to direct the end user back to the home page of your company, or something similar.

Error

Allows you to define error endpoints called when errors occur. Error behavior can be used redirect the user to a central logout page hosted by the customer, to direct the end user back to the home page of your company, or something similar.

Fields:

Field Description
Error Drop-down list, behavior on error.
Error path Path to error endpoint URL. It may be relative or fully qualified depending on use.

Dropdown list box value Behavior

Error Path

Use Okta Access Gateway error page Default.
Define an error path for this application. By default, it shows the generic Access Gateway error page.

Not applicable.

Use Application error page When selected, it displays an application hosted error page.
Note: Error path must be a valid path in your application.

Valid relative path that must exist in the protected application.

Define a custom error URL When selected and the error path is called, it redirects the end user to a specified custom Error path URL path.

In addition to Error path, enter a fully qualified path which is used as a error handler.
Custom URL must contain a valid fully qualified URL.
Typically used to execute an invoke a error flow.

Don't define any Error Behavior

When selected, Access Gateway doesn't provide any error behavior.

Not applicable.

Error state transitions

No Session/Session Expired

Allows you to define the end user experience when the Access Gateway has no session or the current session expires for this application.

Dropdown list box values
Redirect to IDP Default.
End user is redirected to Okta to be re-authenticated. If their Okta session is still active, the end user is silently redirected back to the application with a refreshed application session.
Force reauthentication at IDP When selected, it redirects the end user to Okta for authentication.
Note: End user is asked to re-authenticate, even if their Okta session is active.
Show default no session page When selected, it displays the default Access Gateway no session page.

Redirect to custom URL

When selected, it redirects the end user to a specified custom URL.
Custom URL/URI must specify a valid URL.

Session state transitions

Policy Denied

Allows you to define the end user experience when Access Gateway denies access to a resource in the case of a policy failure.

Dropdown list box values
Show default policy failure page Default.
Displays the default Access Gateway policy failure page.
Return 403 status code When selected, return blank page with HTTP 403 status code.
Redirect to custom URL When selected, redirect end user to specified custom URL on policy denied.
Custom URL/URI must specify a valid URL.

Session Integrity Failed

Allows you to define the end user experience when Access Gateway detects a session integrity failure.
Common if end users are changing networks while maintaining an active application session.
Access Gateway will finger print the remote-IP and deny access.

Drop-down list box values
Show default Security warning page Default.
Displays the default Access Gateway security warning page.
Return 405 status code When selected, it returns a blank screen with 405 status code.
Redirect to IDP When selected, it redirects the end user to a specified custom URL on session integrity error.
Custom URL/URI must specify a valid URL.

Force reauthentication at IDP

Force end user to re-authenticate. Once re-authenticated will SSO back into application.

Do not enforce

Do not enforce session integrity.

Certificate validation behavior

Certificate validation behavior is an Early Access feature. To enable it, contact Okta Support.

Allows you to define the fields and behaviors used when validating requests using certificate chains.

Caution

Caution, by specifying incoming and outgoing certificate header fields, and a certificate behavior, you are implicitly defining that the associated application uses Client Certificate chains for additional authentication.



Fields:

Field Description
Client Certificate Validation Failed Drop-down list box, behavior on client certificate validation failure.
Custom URL/URI Path to custom endpoint,
Relative or fully qualified depending on use.
Executed only on redirect to Custom URL.
Incoming Header Field Name The header attribute containing the PEM format certificate. The value in this attribute is compared to certificate chain certificates.

Outgoing Header Field Name

The header attribute used to contain the certificate after validation. The value of the incoming header field is copied to the value of this header field on redirect to the requested back and resource.

Client Certificate Validation Failed supports the following:

Drop-down list box value Behavior
Disable certificate checking Default, certificate checking is disabled for this application.
Redirect the end user to a custom URL On certificate validation failure, redirect to the URL/URI listed in the Custom URL/URI field.
Return a blank page with an HTTP 405 status code On certificate validation failure, redirect to a blank (empty) page and return the HTTP 405 status t the caller.
Present a default error page with an "Invalid certificate message" On certificate validation failure, display the Invalid certificate error page to the end user.

Application Maintenance

Allows you to define the end user experience when the application is in maintenance mode.

Drop-down list box values
Default Application Maintenance page Default.
Displays the default Okta Access Gateway application maintenance page.
Redirect to custom URL When selected, it redirects end user to a specified custom URL when in maintenance mode.
Custom URL/URI must specify a valid URL.

Application Inactive

Allows you to define the end user experience when the application is in inactive mode.

Drop-down list box values
Default Application inactive page Default.
Displays the default Access Gateway application inactive page.
Redirect to custom URL When selected, it redirects the end user to a specified custom URL when application is inactive.
Custom URL/URI must specify a valid URL.

Application Offline

Allows you to define the end user experience when the application is detected as offline.

Drop-down list box values
Default Application inactive page

Default.

Displays the default Access Gateway application offline page.

Redirect to custom URL When selected, it redirects the end user to a specified custom URL when application is offline.
Custom URL/URI must specify a valid URL.