Portal Auth Settings

Update Auth Settings

Changed on

Updates the developer authentication configuration for a portal. Developers can be allowed to login using basic auth (email & password) or use Single-Sign-On through an Identity Provider. Developers can be automatically assigned to teams by mapping claims from their IdP account.

patch/v3/portals/{portalId}/authentication-settings

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

Request body

PortalAuthenticationSettingsUpdateRequest required

Properties to update a portal's developer auth settings.

basic_auth_enabled, boolean

The organization has basic auth enabled.

oidc_auth_enabled, boolean

Deprecated. Use the Identity Provider API instead.

saml_auth_enabled, boolean

Deprecated. Use the Identity Provider API instead.

oidc_team_mapping_enabled, boolean

IdP groups determine the Portal Teams a developer has. Replaced by idp_mapping_enabled.

konnect_mapping_enabled, boolean

Whether a Konnect Identity Admin assigns teams to a developer.

idp_mapping_enabled, boolean

Whether IdP groups determine the Konnect Portal teams a developer has.

oidc_issuer, string nullable

Deprecated. Use the Identity Provider API instead.

oidc_client_id, string nullable

Deprecated. Use the Identity Provider API instead.

oidc_client_secret, string nullable

Deprecated. Use the Identity Provider API instead.

oidc_scopes, string[] nullable

Deprecated. Use the Identity Provider API instead.

oidc_claim_mappings, object nullable

Deprecated. Use the Identity Provider API instead.

Example request

{
  "basic_auth_enabled": true,
  "oidc_auth_enabled": true,
  "oidc_team_mapping_enabled": true,
  "konnect_mapping_enabled": false,
  "oidc_issuer": "https://identity.example.com/v2",
  "oidc_client_id": "x7id0o42lklas0blidl2",
  "oidc_scopes": [
    "email",
    "openid",
    "profile"
  ],
  "oidc_claim_mappings": {
    "name": "name",
    "email": "email",
    "groups": "custom-group-claim"
  }
}

Response

Details about a portal's authentication settings.

PortalAuthenticationSettingsResponse required

The developer authentication settings for a portal.

basic_auth_enabled, boolean required

The portal has basic auth enabled or disabled.

oidc_auth_enabled, boolean required

The portal has OIDC enabled or disabled.

saml_auth_enabled, boolean

A Konnect Identity Admin assigns teams to a developer.

oidc_team_mapping_enabled, boolean required

IdP groups determine the Portal Teams a developer has. Replaced by idp_mapping_enabled.

idp_mapping_enabled, boolean

Whether IdP groups determine the Konnect Portal teams a developer has.

konnect_mapping_enabled, boolean required

A Konnect Identity Admin assigns teams to a developer.

oidc_config, object

Configuration properties for an OpenID Connect Identity Provider.

oidc_issuer, string nullable
oidc_client_id, string nullable
oidc_scopes, string[] nullable
oidc_claim_mappings, object nullable

Mappings from a portal developer atribute to an Identity Provider claim.

Example response

{
  "basic_auth_enabled": true,
  "oidc_auth_enabled": true,
  "oidc_team_mapping_enabled": true,
  "konnect_mapping_enabled": false,
  "oidc_config": {
    "issuer": "https://identity.example.com/v2",
    "client_id": "x7id0o42lklas0blidl2",
    "scopes": [
      "email",
      "openid",
      "profile"
    ],
    "claim_mappings": {
      "name": "name",
      "email": "email",
      "groups": "custom-group-claim"
    }
  }
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status