Skip to content

Retrieve the application behavior configuration

Request

Retrieves a behavior configuration for an application

Path
applicationIdstring, (uuid)required

Identifier of the application

curl -i -X GET \
  'https://oag.domain.tld/api/v2/apps/{applicationId}/behavior'

Responses

Success

Bodyapplication/json
customLoginUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

This URL is used to redirect users to a custom login page. The URL must be valid and fully qualified.

errorstring

Allows you to define error endpoints to call when errors occur.

Enum ValueDescription
OAG_ERROR_PATH

This option lets you define an error path for an app. By default, it shows the generic Access Gateway error page

APP_ERROR_PATH

This option displays an app-hosted error page. Set the app-hosted error page with the errorPath property. The errorPath must be a valid path in your app.

NO_APP_ERROR_PATH

Access Gateway doesn't perform any error behavior

CUSTOM_URL

This option redirects the user to a custom URL for error handling. Set the custom URL with the postErrorUrl property.

errorManagedboolean

Indicates whether you manage error behavior in your IdP

errorPathstring

This is the path to the error endpoint URL. It can be a relative path within the application domain.

globalTokenRevocationboolean

Indicates whether an IdP can send a logout signal in case of a security event

inactivestring

Allows you to define the end-user experience when an application is inactive

Enum ValueDescription
OAG_DEFAULT_PAGE

This option displays default Access Gateway "App offline" page

CUSTOM_URL

This option redirects the user to a custom URL for inactivity. Set the custom URL with the inactiveUrl property.

inactiveUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

If you use CUSTOM_URL as the inactive method, then inactiveUrl is the URL where end users are directed when an app is inactive.

loginstring

Allows you to define login endpoints when users sign in and create user sessions

Enum ValueDescription
OAG_LOGIN_PATH

This option shows the Access Gateway local authentication module (Auth Module) sign-in page. Use a valid relative path in the protected app. The Auth module must refer to a previously defined Auth Module.

APP_LOGIN_PATH

This option uses the associated unprotected path to an app-hosted sign-in page. Use a valid relative path in the protected app.

NO_APP_LOGIN_PATH

This option doesn't use a login path

CUSTOM_URL

This option redirects the user to a custom URL after they sign in. Set the custom URL with the loginPath property.

loginManagedboolean

Indicates whether you manage sign-in behavior in your IdP

loginPathstring

The path to the login endpoint URL. It can be relative or fully qualified, depending on which login method you use. It's executed after the user successfully signs in.

Note: The URL must be unique across the login, logout, and error behaviors. Access Gateway doesn't support using the same URL for multiple behaviors. The URL can't overlap with an existing defined policy.

logoutstring

Allows you to define logout endpoints that help terminate user sessions

Enum ValueDescription
OAG_LOGOUT_PATH

This option signs the user out of Access Gateway and the application. Set the logout path with the logoutPath property.

OAG_LOGOUT_SHOW_LOGIN

This option intercepts the logout path and displays the login page, signing the user out locally within Access Gateway without propagating the logout to the IdP. Set the logout path with the logoutPath property.

APP_LOGOUT_PATH

This option signs the user out of the application only

NO_APP_LOGOUT_PATH

This option does not sign the user out of the application

CUSTOM_URL

This option redirects the user to a custom URL for logout. Set the custom URL with the postLogoutUrl property

logoutPathstring

The path to the relative endpoint URL. Redirect users to this path when they sign out.

Note: The URL must be unique across the login, logout, and error behaviors. Access Gateway doesn't support using the same URL for multiple behaviors. The URL can't overlap with an existing defined policy.

maintenancestring

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

Enum ValueDescription
OAG_DEFAULT_PAGE

This option displays the default Access Gateway "App maintenance" page

CUSTOM_URL

This option redirects the user to a custom URL for maintenance. Set the custom URL with the maintenanceUrl property.

maintenanceUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

If you use CUSTOM_URL as the maintenance method, then maintenanceUrl is the URL where end users are directed when an app is in maintenance mode.

noSessionstring

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

Enum ValueDescription
OAG_DEFAULT_PAGE

When no there's no session or an expired session, this option displays the Access Gateway "No session" page

IDP_REDIRECT

This option redirects the end user to Okta to reauthenticate. If their Okta session is still active, the end user is silently redirected back to the app with a refreshed app session.

IDP_FORCE_AUTHN

This option redirects the end user to Okta to reauthenticate, even if their Okta session is active

CUSTOM_URL

This option redirects the end user to a custom URL. Set the custom URL with the noSessionUrl property

noSessionUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

The URL where an end user is redirected when no session or a session expiry is detected

policyDeniedstring

Allows you to define the end-user experience when Access Gateway denies access to a resource if the user doesn't meet the requirements of a policy

Enum ValueDescription
OAG_DEFAULT_PAGE

When a policy denial is detected, this option displays the default Access Gateway policy failure page

STATUS_CODE_403

This option returns a blank page with the HTTP 403 Forbidden error

CUSTOM_URL

This option redirects the end user to a custom URL when the user doesn't fulfill the requirements of a policy. Set the custom URL with the policyDeniedUrl property.

policyDeniedUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

The URL where an end user is redirected when a policy denial is detected

postErrorUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

If you use CUSTOM_URL as the error method, then postErrorUrl is the URL where end users are directed after an error occurs. The URL must be valid and fully qualified.

postLogoutUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

If you use CUSTOM_URL as the logout method, then postLogoutUrl is the URL where end users are directed after they sign out

sessionIntegrityFailurestring

Allows you to define the end-user experience when Access Gateway detects a session integrity failure.

For example, a session integrity failure can occur when end users change networks while maintaining an active app session.

Enum ValueDescription
OAG_DEFAULT_PAGE

When a session integrity failure is detected, this option displays the default Access Gateway security warning page

IGNORE

This option means that session integrity isn't enforced

IDP_FORCE_AUTHN

This option forces the end user to Okta so that they reauthenticate. After they sign in again, they're returned to the application.

IDP_REDIRECT

This option redirects the end user to Okta so that they reauthenticate. If their Okta session is still active, the end user is silently redirected back to the app with a refreshed app session.

STATUS_CODE_405

This option returns a blank page with the HTTP 405 Method Not Allowed error

CUSTOM_URL

This option redirects the end user to a custom URL when a session integrity failure is detected. Set the custom URL with the sessionIntegrityFailureUrl property.

sessionIntegrityFailureUrlstring, (uri)^https?://[a-zA-Z0-9.-]+(:[0-9]{1,5})?/?$

The URL where an end user is redirected when a session integrity failure is detected

singleLogoutboolean

Indicates whether both the Access Gateway application session and IdP session are terminated when a user signs out. When singleLogout is true, both sessions are terminated.

When it's false, only the Access Gateway application session is terminated.

universalLogoutboolean

Indicates whether the user's Access Gateway and application sessions are terminated when they sign out. When it's true, users must sign in again to use Access Gateway or their applications.

When it's false, only the Access Gateway application session is terminated.

Note: Universal logout doesn't sign the user out of Okta.

Response
{ "singleLogout": false, "universalLogout": false, "globalTokenRevocation": false, "noSession": "IDP_REDIRECT", "policyDenied": "OAG_DEFAULT_PAGE", "sessionIntegrityFailure": "CUSTOM_URL", "sessionIntegrityFailureUrl": "https://app.domain.tld/errorPage", "logout": "OAG_LOGOUT_PATH", "logoutPath": "/oagLogout", "postLogoutUrl": "https://app.domain.tld/logout", "error": "OAG_ERROR_PATH", "errorPath": "/oagError", "errorManaged": false, "postErrorUrl": "https://app.domain.tld/error", "login": "NO_APP_LOGIN_PATH", "loginPath": "/login", "loginManaged": false, "maintenance": "CUSTOM_URL", "maintenanceUrl": "https://app.domain.tld/maintenance", "inactive": "CUSTOM_URL", "inactiveUrl": "https://app.domain.tld/inactive" }