Trusted IdPs

Update a trusted IdP

Changed on

Replace a trusted IdP for a given directory. The request body is the full representation; omitted optional fields are reset to their defaults.

put/v2/directories/{directoryId}/trusted-idps/{trustedIdpId}

Request

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

Path parameters

directoryId, string uuid required

ID of the directory

trustedIdpId, string uuid required

Unique identifier of the trusted idp for the vault

Request body

ReplaceTrustedIdpBody required

Replacement representation of a trusted IdP. This operation replaces the stored configuration: display_name, jwks_uri and the jit mapping are cleared when omitted, and jit_provisioning_enabled and vault_access_enabled reset to their defaults (true and false) when omitted. To change only some fields, use the patch operation instead.

issuer_url, string uri required

The issuer URL of the trusted IdP. Unique per vault.

display_name, string nullable

A human-friendly display name for the trusted IdP, distinct from its unique issuer_url.

jwks_uri, string uri nullable

JWKS URI of the trusted IdP. Overrides OIDC discovery when set.

jit_provisioning_enabled, boolean

Whether a principal is provisioned just-in-time on first exchange when no principal matches the subject_token's issuer and its identifier claim — sub by default, or the claim jit.mapping.identifier names.

vault_access_enabled, boolean

Whether vault token exchange is enabled for principals provisioned by this trusted IdP. Defaults to false; it can be set on create, is reset to false when omitted in the replace operation, and can be changed via the patch operation.

jit, TrustedIdpJit

Just-in-time provisioning configuration for this trusted IdP. The mapping decides how the OIDC claims a client presents to fetch-principal shape a principal provisioned just in time.

Example request

{
  "issuer_url": "https://acme.okta.com/oauth2/default",
  "jwks_uri": "https://acme.okta.com/oauth2/default/v1/keys",
  "jit": {
    "mapping": {
      "metadata": {
        "department": "department"
      },
      "email": "email",
      "groups": "groups",
      "display_name": "name",
      "identifier": "oid"
    }
  }
}

Response

A trusted IdP

TrustedIdp required

A trusted external IdP for a token-vault enabled directory.

id, string uuid required

The ID of the trusted IdP.

issuer_url, string uri required

The issuer URL of the trusted IdP. Unique per vault.

display_name, string nullable

A human-friendly display name for the trusted IdP, distinct from its unique issuer_url.

jwks_uri, string uri nullable required

JWKS URI of the trusted IdP. Overrides OIDC discovery when set.

jit_provisioning_enabled, boolean required

Whether a principal is provisioned just-in-time on first exchange when no principal matches the subject_token's issuer and its identifier claim — sub by default, or the claim jit.mapping.identifier names.

vault_access_enabled, boolean required

Whether vault token exchange is enabled for principals provisioned by this trusted IdP. Defaults to false; it can be set on create, is reset to false when omitted in the replace operation, and can be changed via the patch operation.

jit, TrustedIdpJit

Just-in-time provisioning configuration for this trusted IdP. The mapping decides how the OIDC claims a client presents to fetch-principal shape a principal provisioned just in time.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "issuer_url": "https://acme.okta.com/oauth2/default",
  "jwks_uri": "https://acme.okta.com/oauth2/default/v1/keys",
  "jit": {
    "mapping": {
      "metadata": {
        "department": "department"
      },
      "email": "email",
      "groups": "groups",
      "display_name": "name",
      "identifier": "oid"
    }
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes