From 0e3f7d7f252519d0cc134c00ae269d9555937d53 Mon Sep 17 00:00:00 2001 From: Jakob Steiner Date: Fri, 29 Aug 2025 10:57:23 +0200 Subject: [PATCH 1/2] fix: omit empty ClientSecret from DCR response (#38) --- examples/who-am-i/config.yaml | 4 +++- oauth/dynamic_client_registration.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/who-am-i/config.yaml b/examples/who-am-i/config.yaml index fced836..48c0271 100644 --- a/examples/who-am-i/config.yaml +++ b/examples/who-am-i/config.yaml @@ -3,7 +3,9 @@ authorization: server: http://dex:5556/ authorizationProxyEnabled: true serverMetadataProxyEnabled: true - dynamicClientRegistrationEnabled: true + dynamicClientRegistration: + enabled: true + publicClient: true dexGRPCClient: addr: dex:5557 proxy: diff --git a/oauth/dynamic_client_registration.go b/oauth/dynamic_client_registration.go index e86b801..dfad4f5 100644 --- a/oauth/dynamic_client_registration.go +++ b/oauth/dynamic_client_registration.go @@ -18,8 +18,8 @@ const DynamicClientRegistrationPath = "/oauth/register" type ClientInformation struct { ClientID string `json:"client_id"` - ClientSecret string `json:"client_secret"` - ClientSecretExpiresAt int64 `json:"client_secret_expires_at"` + ClientSecret string `json:"client_secret,omitempty"` + ClientSecretExpiresAt int64 `json:"client_secret_expires_at,omitempty"` ClientName string `json:"client_name,omitempty"` RedirectURIs []string `json:"redirect_uris"` LogoURI string `json:"logo_uri,omitempty"` From 3facb8225672e999a1fe46d6d8c614dc7d9fe030 Mon Sep 17 00:00:00 2001 From: "glasskube[bot]" <133648757+glasskube-bot@users.noreply.github.com> Date: Fri, 29 Aug 2025 11:06:54 +0200 Subject: [PATCH 2/2] chore(main): release 0.2.2 (#39) --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ examples/who-am-i/docker-compose.yaml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index af55ef0..949ce4c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.1" + ".": "0.2.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index e74fec8..ca597fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.2.2](https://github.com/hyprmcp/mcp-gateway/compare/0.2.1...0.2.2) (2025-08-29) + + +### Bug Fixes + +* omit empty ClientSecret from DCR response ([#38](https://github.com/hyprmcp/mcp-gateway/issues/38)) ([0e3f7d7](https://github.com/hyprmcp/mcp-gateway/commit/0e3f7d7f252519d0cc134c00ae269d9555937d53)) + ## [0.2.1](https://github.com/hyprmcp/mcp-gateway/compare/0.2.0...0.2.1) (2025-08-28) diff --git a/examples/who-am-i/docker-compose.yaml b/examples/who-am-i/docker-compose.yaml index 1548693..a01e750 100644 --- a/examples/who-am-i/docker-compose.yaml +++ b/examples/who-am-i/docker-compose.yaml @@ -18,7 +18,7 @@ services: - .dex.secret.env gateway: - image: ghcr.io/hyprmcp/mcp-gateway:0.2.1 # x-release-please-version + image: ghcr.io/hyprmcp/mcp-gateway:0.2.2 # x-release-please-version command: [ "serve",