mirror of
https://github.com/docker/mcp-gateway-oauth-helpers
synced 2026-04-05 19:45:14 +00:00
No description
- Go 97%
- Dockerfile 2.2%
- Makefile 0.8%
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> |
||
|---|---|---|
| .github | ||
| .golangci.yml | ||
| dcr.go | ||
| dcr_test.go | ||
| discovery.go | ||
| discovery_test.go | ||
| Dockerfile | ||
| go.mod | ||
| LICENSE | ||
| log.go | ||
| Makefile | ||
| README.md | ||
| testutil.go | ||
| types.go | ||
| www_authenticate.go | ||
| www_authenticate_test.go | ||
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