No description
  • Go 97%
  • Dockerfile 2.2%
  • Makefile 0.8%
Find a file
Sundeep Gottipati ed5059d6c0
Add mcp-stage.docker.com as valid redirect URI host (#6)
Allow the staging environment URL (https://mcp-stage.docker.com/oauth/callback)
as a valid redirect URI for OAuth flows, in addition to the existing production
URL (mcp.docker.com) and localhost variants.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:48:03 -08:00
.github bugfix: OAuth Discovery Robustness, Logging, and Test Coverage (#1) 2025-10-15 10:38:32 -07:00
.golangci.yml init 2025-09-24 19:46:24 -07:00
dcr.go Add mcp-stage.docker.com as valid redirect URI host (#6) 2026-01-29 11:48:03 -08:00
dcr_test.go Add mcp-stage.docker.com as valid redirect URI host (#6) 2026-01-29 11:48:03 -08:00
discovery.go Fix well-known URL construction when issuer contains a path according to spec: (RFC 8414) (#5) 2026-01-12 15:51:03 -08:00
discovery_test.go Fix well-known URL construction when issuer contains a path according to spec: (RFC 8414) (#5) 2026-01-12 15:51:03 -08:00
Dockerfile init 2025-09-24 19:46:24 -07:00
go.mod init 2025-09-24 19:46:24 -07:00
LICENSE Initial commit 2025-09-24 19:41:50 -07:00
log.go bugfix: OAuth Discovery Robustness, Logging, and Test Coverage (#1) 2025-10-15 10:38:32 -07:00
Makefile init 2025-09-24 19:46:24 -07:00
README.md Update README.md to account for code origin 2025-09-25 10:30:19 -07:00
testutil.go bugfix: OAuth Discovery Robustness, Logging, and Test Coverage (#1) 2025-10-15 10:38:32 -07:00
types.go init 2025-09-24 19:46:24 -07:00
www_authenticate.go bugfix: OAuth Discovery Robustness, Logging, and Test Coverage (#1) 2025-10-15 10:38:32 -07:00
www_authenticate_test.go bugfix: OAuth Discovery Robustness, Logging, and Test Coverage (#1) 2025-10-15 10:38:32 -07:00

MCP Gateway OAuth Helpers

Library containing OAuth Dynamic Client Registration (DCR) functionality for MCP servers.

Note: This code was extracted from MCP Gateway PR: https://github.com/docker/mcp-gateway/pull/148

Purpose

This library provides the core OAuth/DCR functions for MCP Gateway:

  • OAuth Discovery: Discover OAuth requirements from MCP servers (RFC 9728 + 8414)
  • Dynamic Client Registration: Register OAuth clients automatically (RFC 7591)
  • WWW-Authenticate Parsing: Parse OAuth challenge headers