Trusted IdPs

Partially update a trusted IdP

Changed on

Partially updates a trusted IdP. Only the fields present in the request body are changed; omitted fields keep their current values. This is the only way to modify vault_access_enabled.

patch/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

UpdateTrustedIdpBody required

Partial update of a trusted IdP. Only the fields present in the body are changed; omitted fields keep their current values.

issuer_url, string uri

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

New value for jit_provisioning_enabled. Omit to leave the current value unchanged.

vault_access_enabled, boolean

New value for vault_access_enabled. Omit to leave the current value unchanged.

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