mcp-auth-proxy
mcp-auth-proxy copied to clipboard
MCP Auth Proxy is a secure OAuth 2.1 authentication proxy for Model Context Protocol (MCP) servers
## Problem MCP clients that connect over OAuth — notably Claude.ai custom connectors — render a connector's icon from the `logo_uri` field in the OAuth **Authorization Server Metadata** (`/.well-known/oauth-authorization-server`). `mcp-auth-proxy`...
Fixes #173. ## Summary `POST /.idp/register` returns `grant_types: null`, `response_types: null`, and `token_endpoint_auth_method: ""` whenever the caller omits these optional fields. RFC 7591 §2 requires the server to apply defaults:...
## Summary `POST /.idp/register` (Dynamic Client Registration) returns `grant_types` and `response_types` as `null` — and `token_endpoint_auth_method` as `""` — when the client's registration request omits them. Per RFC 7591 these...
## Summary Auth callback endpoints (`/.auth/{oidc,github,google}/callback`) returned HTTP 500 and leaked the app name and internal error text (e.g. `"OAuth state is missing"`) to unauthenticated callers. This patch returns the...
## Summary The default ginzap logging is missing any identity information from the auth token. This adds the "sub" claim as "subject" to the logs. ## Type of Change -...
## Summary Adds an auth template override directory so deployments can customize the HTML auth pages without rebuilding the binary or forking embedded templates. The new `--auth-template-dir` / `AUTH_TEMPLATE_DIR` setting...
## Summary Two related additions to the OIDC client side of the proxy, both surfaced by trying to use the proxy against IdPs that follow OAuth 2.1 strictly (in our...
## Summary Adds periodic upstream IdP re-validation so the proxy honors IdP-side deprovisioning (suspension, group removal, password reset) without waiting for the downstream JWT to expire. When enabled, every authenticated...
## Summary Fosite restores the persisted session (including JWTHeader.kid) on refresh_token grants. After the proxy's signing key is rotated (e.g., via cert-manager), the emitted JWT was signed with the new...
## Problem mcp-auth-proxy currently only supports the `authorization_code` + `refresh_token` grant flow, which requires a human user to authenticate interactively via a browser. This blocks a growing use case: **automated...