OpenID Connect 플러그인 OpenAPI 사양
OpenID Connect 플러그인 OpenAPI 사양 (OpenID Connect Plugin OpenAPI Specification)
이 문서는 Kong의 OpenID Connect 플러그인을 통해 디스커버리 캐시와 JWK를 관리하는 Admin API를 OpenAPI 사양으로 정의한 문서예요. 발급자(issuer) URL이나 ID로 디스커버리 캐시 객체를 조회하고 삭제하는 엔드포인트와 응답 코드를 확인할 수 있어요. 플러그인이 캐시해 둔 OpenID Connect 디스커버리 정보를 API로 직접 확인하거나 정리하고 싶을 때 참고하면 좋아요
출처: 문서
본문
---
openapi: 3.0.2
info:
title: OpenID Connect API
version: 1.0.0
description: API for managing discovery caches and JWKs in Kong via the OpenID Connect
plugin.
contact:
email: docs@konghq.com
name: Kong Inc
url: https://konghq.com
externalDocs:
description: OpenID Connect Plugin API Specification
url: https://developer.konghq.com
servers:
- description: Default Admin API URL
url: "{protocol}://{hostname}:{port}{path}"
variables:
hostname:
default: localhost
description: Hostname for Kong's Admin API
path:
default: "/"
description: Base path for Kong's Admin API
port:
default: '8001'
description: Port for Kong's Admin API
protocol:
default: http
description: Protocol for requests to Kong's Admin API
enum:
- http
- https
security:
- personalAccessToken: []
paths:
"/openid-connect/issuers":
get:
operationId: listDiscoveryCache
summary: List All Discovery Cache Objects
description: Retrieves a list of all discovery cache objects stored in Kong.
responses:
'200':
description: List of discovery cache objects.
'500':
description: Internal server error.
tags:
- OpenID Connect
delete:
operationId: deleteAllDiscoveryCache
summary: Delete All Discovery Cache Objects
description: Deletes all stored discovery cache objects.
responses:
'204':
description: All discovery cache objects successfully deleted.
'500':
description: Internal server error.
tags:
- OpenID Connect
"/openid-connect/issuers/{issuer_or_id}":
get:
operationId: getDiscoveryCache
summary: Retrieve a Discovery Cache Object
description: Retrieves a specific discovery cache object using the issuer URL
or ID.
parameters:
- name: issuer_or_id
in: path
required: true
description: The unique identifier or the `config.issuer` value.
schema:
type: string
responses:
'200':
description: Discovery cache object found.
'404':
description: Discovery cache object not found.
'500':
description: Internal server error.
tags:
- OpenID Connect
delete:
operationId: deleteDiscoveryCache
summary: Delete a Discovery Cache Object
description: Deletes a specific discovery cache object using the issuer URL
or ID.
parameters:
- name: issuer_or_id
in: path
required: true
description: The unique identifier or the `config.issuer` value.
schema:
type: string
responses:
'204':
description: Discovery cache object successfully deleted.
'404':
description: Discovery cache object not found.
'500':
description: Internal server error.
tags:
- OpenID Connect
"/openid-connect/jwks":
get:
operationId: getJWKS
summary: Retrieve JWKS
description: Retrieves the JSON Web Key Set (JWKS) used by the OpenID Connect
plugin.
responses:
'200':
description: JSON Web Key Set found.
content:
application/jwk-set+json:
schema:
type: object
'404':
description: JWKS not found.
'500':
description: Internal server error.
tags:
- OpenID Connect
delete:
operationId: rotateJWKS
summary: Rotate JWKS
description: Deletes the current JSON Web Key Set, triggering an automatic key
rotation.
responses:
'204':
description: JWKS successfully rotated.
'500':
description: Internal server error.
tags:
- OpenID Connect
tags:
- name: OpenID Connect
description: API endpoints for managing OpenID Connect discovery caches and JSON
Web Keys (JWKS) in Kong.
components:
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Token
관련 리소스
더 알아보기 (Learn more)
- OpenID Connect 플러그인의 개념과 설정 방식을 전체적으로 다루는 기본 문서 — OpenID Connect in Kong Gateway
- Kong Gateway에서 제공하는 인증 방식 전반을 이해하는 데 도움이 되는 문서 — Authentication in Kong Gateway
- OpenID Connect 플러그인을 실습으로 따라 할 수 있는 튜토리얼 모음 — OpenID Connect tutorials