Trusted IdPs

Create a new trusted IdP

Changed on

Create a trusted IdP for a given directory. The issuer_url must be unique within the directory.

post/v2/directories/{directoryId}/trusted-idps

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

Request body

CreateTrustedIdpPayload required

Fields required to create a trusted IdP for a vault.

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