Auth Server Scopes

Create a new auth server scope

Changed on

Create a new scope for a given auth server. The name attribute must be unique within the auth server.

post/v1/auth-servers/{authServerId}/scopes

Request

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

Path parameters

authServerId, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

The auth server ID

Request body

object required
name, string required

The name of the scope

description, string

Description of the scope

default, boolean

Specifies whether the scope is included by default in access tokens without being explicitly requested by the client. If the scope is not allowed by the client, it will not be included in the access token.

include_in_metadata, boolean

Specifies whether to include the scope in the metadata document

enabled, boolean

Specifies whether the scope is enabled. If the scope is not enabled, it cannot be requested by clients and will not be included in the access token.

Response

A scope

Scope required
id, string uuid required

The ID of the scope

name, string required

The name of the scope

description, string required

Description of the scope

default, boolean required

Specifies whether the scope is included by default in access tokens without being explicitly requested by the client. If the scope is not allowed by the client, it will not be included in the access token.

include_in_metadata, boolean required

Specifies whether to include the scope in the metadata document

enabled, boolean required

Specifies whether the scope is enabled. If the scope is not enabled, it cannot be requested by clients and will not be included in the access token.

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

{
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

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