Portal Auth Settings

Update Identity Provider

Changed on

Updates the configuration of an existing identity provider. This operation allows modifications to be made to an existing identity provider's configuration.

patch/v3/portals/{portalId}/identity-providers/{id}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

portalId, string uuid required
Example:f32d905a-ed33-46a3-a093-d8f536af9a8a

The Portal identifier

id, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

ID of the identity provider.

Request body

PortalUpdateIdentityProvider required

The identity provider that contains configuration data for updating an authentication integration.

enabled, boolean

Indicates whether the identity provider is enabled. Only one identity provider can be active at a time, such as SAML or OIDC. When omitted, the current value is left unchanged.

config, union

The configuration data to update for the authentication integration.

Example request

{
  "enabled": true,
  "config": {
    "issuer_url": "https://konghq.okta.com/oauth2/default",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "scopes": [
      "openid",
      "email",
      "profile"
    ],
    "claim_mappings": {
      "name": "name",
      "email": "email",
      "groups": "groups"
    }
  }
}

Response

An identity provider configuration. This response represents the configuration of a specific identity provider, which can be either OIDC or SAML.

PortalIdentityProvider required

The identity provider that contains configuration data for authentication integration.

id, string uuid

Contains a unique identifier used for this resource.

type, 'oidc' | 'saml'

Specifies the type of identity provider.

enabled, boolean

Indicates whether the identity provider is enabled. Only one identity provider can be active at a time, such as SAML or OIDC.

config, union

The configuration data for the authentication integration.

created_at, string date-time

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "type": "oidc",
  "enabled": true,
  "config": {
    "issuer_url": "https://konghq.okta.com/oauth2/default",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "claim_mappings": {
      "name": "name",
      "email": "email",
      "groups": "groups"
    },
    "backchannel_logout": {
      "supported": true,
      "session_supported": true
    }
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      the config request property type changed from object to no type

    • breaking

      the config response's property type changed from object to no type for status

    • warning

      changed the pattern of the request property config/oneOf[subschema #2: Update SAML Identity Provider Config]/idp_metadata_url from ^https?://\S+$ to ^(https?://\S+)?$

    4 more changes in this revision