Skip to content

Assign the offline mode state for an application

Request

Early Access

Assigns the offline mode state for a specific application in Access Gateway, by applicationId.

Use this endpoint to enable or disable the ability for applications to function in offline mode. When offline mode is enabled, and the Okta IdP is unreachable, the application can failover to offline mode and function with modified capabilities.

Path
applicationIdstring, (uuid)required

Identifier of the application

Bodyapplication/jsonrequired
statestringrequired

Indicates the offline mode state of the application

Enum ValueDescription
ACTIVE

Active offline mode means that Access Gateway uses the offline mode configuration to handle authentication and authorization when the IdP is unreachable.

INACTIVE

Inactive offline mode means that Access Gateway doesn't use the offline mode configuration to handle authentication and authorization when the IdP is unreachable. Access Gateway uses the online mode configuration instead.

TEST

Test offline mode means that Access Gateway simulates offline mode for an application while the IdP is still reachable. This allows you to test the offline mode configuration before activating it.

curl -i -X POST \
  'https://oag.domain.tld/api/v2/apps/{applicationId}/offline-mode' \
  -H 'Content-Type: application/json' \
  -d '{
    "state": "ACTIVE"
  }'

Responses

Application offline mode state updated successfully

Bodyapplication/json
statestringrequired

Indicates the offline mode state of the application

Enum ValueDescription
ACTIVE

Active offline mode means that Access Gateway uses the offline mode configuration to handle authentication and authorization when the IdP is unreachable.

INACTIVE

Inactive offline mode means that Access Gateway doesn't use the offline mode configuration to handle authentication and authorization when the IdP is unreachable. Access Gateway uses the online mode configuration instead.

TEST

Test offline mode means that Access Gateway simulates offline mode for an application while the IdP is still reachable. This allows you to test the offline mode configuration before activating it.

Response
{ "state": "ACTIVE" }