Skip to content

Assign the failover mode for an IdP

Request

Early Access

Assigns the failover mode for the specified identity provider (IdP) by idpId.

The failover mode determines how Access Gateway handles authentication requests when the selected IdP is unavailable.

Path
idpIdstring, (uuid)required

Identifier of the IdP

Bodyapplication/jsonrequired
modestringrequired

Indicates the failover mode of the IdP when the IdP is unreachable or disconnected from Access Gateway (offline mode).

The failover mode is the behavior of the IdP when Access Gateway can't connect to Okta. Access Gateway can automatically detect when the IdP is unreachable and can then switch to offline mode to maintain functionality.

Enum ValueDescription
AUTOMATIC

In automatic failover mode, when the IdP is unreachable, Access Gateway automatically switches to offline mode.

DISABLED

In disabled failover mode, Access Gateway doesn't switch to offline mode when the IdP is unreachable.

curl -i -X POST \
  'https://oag.domain.tld/api/v2/idps/{idpId}/offline-mode' \
  -H 'Content-Type: application/json' \
  -d '{
    "mode": "AUTOMATIC"
  }'

Responses

Failover mode updated successfully for the IdP

Bodyapplication/json
modestringrequired

Indicates the failover mode of the IdP when the IdP is unreachable or disconnected from Access Gateway (offline mode).

The failover mode is the behavior of the IdP when Access Gateway can't connect to Okta. Access Gateway can automatically detect when the IdP is unreachable and can then switch to offline mode to maintain functionality.

Enum ValueDescription
AUTOMATIC

In automatic failover mode, when the IdP is unreachable, Access Gateway automatically switches to offline mode.

DISABLED

In disabled failover mode, Access Gateway doesn't switch to offline mode when the IdP is unreachable.

Response
{ "mode": "AUTOMATIC" }