Connected Apps

Patch Portal Connected Apps configuration

Changed on

Partially updates the given portal's Connected Apps configuration. Only fields present in the request body are changed. Setting enabled enables or disables Connected Apps for this portal (same effect as POST /connected-apps; enabling for the first time requires default_url to also be set); omitting it patches dcr and/or default_url on the already-enabled auth server, which returns 404 if Connected Apps has not been enabled yet for this portal. The portal id is immutable and always taken from the path.

patch/v1/connected-apps/portals/{portalId}

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:d32d905a-ed33-46a3-a093-d8f536af9a8a

The portal ID

Request body

object required
enabled, boolean

When present, enables or disables Connected Apps for this portal (same effect as POST /connected-apps). Enabling for the first time requires default_url to also be set.

dcr, PatchDcrSettings

Dynamic Client Registration settings to patch

default_url, string uri

The portal's default URL.

Example request

{
  "default_url": "https://portal.example.com"
}

Response

Connected Apps reserved auth server details (when enabled)

ConnectedAppsResponse required

Explicitly lists the AuthServer fields it exposes, rather than inheriting AuthServer wholesale, so that adding a field to AuthServer is not automatically also a Connected Apps change.

id, string uuid required

The ID of the auth server

name, string required

The name of the auth server

description, string required

The description of the auth server

audience, string required

The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token

signing_algorithm, 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512' required

Algorithm used in the key signing process

issuer, string required

The complete URL for the custom authorization server. This becomes the 'iss' claim in an access token.

metadata_uri, string uri required

The URI of the metadata document for the auth server

jwks_uri, string uri

The URI of the JWKS endpoint for the auth server

labels, Labels required

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

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.

trusted_origins, TrustedOrigin[]

A list or trusted origins to apply the CORS header on for the auth server

dcr_default_access_token_duration, integer

The default access token duration, in seconds, applied to DCR clients registered against this auth server

konnect_managed, boolean required

Indicates this auth server is managed by Konnect

domain, 'konnect' | 'portal' required

Domain of Connected Apps configuration

portal, object

Portal configuration (only present when domain is 'portal')

scopes, Scope[] required

Predefined scopes for API access

Example response

{
  "labels": {
    "env": "test"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "trusted_origins": [
    "https://example.com"
  ],
  "konnect_managed": true,
  "portal": {
    "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
    "default_url": "https://portal.example.com"
  },
  "scopes": [
    {
      "created_at": "2022-11-04T20:10:06.927Z",
      "updated_at": "2022-11-04T20:10:06.927Z"
    }
  ]
}

Changes