Repository navigation
feat(oauth): runtime service for browser login (Spec 132 PR-1d) - #2013
Merged
Merged
Conversation
…ec 132 PR-1a) Related #1971
…132 PR-1a) Related #1971
… 132 PR-1b) Related #1971
…mic (Spec 132 PR-1b) Related #1971
…132 PR-1c) Related #1971
…132 PR-1a) Related #1971
…(Spec 132 PR-1c) Related #1971
…ts (Spec 132 PR-1c) Related #1971
…into feat/client-oauth-login-storage
…Spec 132 PR-1d) Related #1971
… 132 PR-1d) Related #1971
…on (Spec 132 PR-1d) Related #1971
…back (Spec 132 PR-1d) Related #1971
…32 PR-1d) Storage validates expiry against the real clock, so a fixed fixture date started failing once it passed. Related #1971
Deploying mcpproxy-docs with
|
| Latest commit: |
b90a6f8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://09d0904e.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://feat-client-oauth-login-runt.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 45199382638 --repo smart-mcp-proxy/mcpproxy-go
|
Dumbris
added a commit
that referenced
this pull request
Nov 23, 2026
## Summary Fifth slice of Spec 132 (opt-in browser login for MCP clients; earlier slices #1997, #2010, #2012, #2013). This one serves the feature over HTTP. It is still off by default (`mcp_oauth_enabled`), and while off and never used every existing answer is unchanged. - OAuth endpoints: protected-resource and authorization-server metadata, `POST /oauth/register`, `GET /oauth/authorize`, `POST /oauth/token`, and the MCP endpoints `/mcp/oauth` and `/mcp/oauth/<client-id>`. - Every request on an OAuth address is authenticated; open streams end when the login is revoked or the feature is switched off. - Loopback only, personal edition only; cross-site and forwarded requests are refused. - Admin REST for sign-in requests (`/api/v1/oauth/authorizations/…`) and logins on clients. No consent page yet (next slice): `GET /oauth/authorize` redirects to `/ui/authorize?request=<id>`. - Activity rows carry credential kind `oauth`. - No new dependencies. ## Review Cross-reviewed with opencode `github-copilot/gpt-6.1-sol` (five rounds, clean) and an Opus security review. ## Testing `go test -race ./internal/server/... ./internal/httpapi/... -run 'OAuth|Oauth'` (and with `-tags server`). Related #1971
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fourth slice of Spec 132 (opt-in browser login for MCP clients; spec #1996, switch #1997, protocol #2010, storage #2012). Runtime service only; no HTTP endpoint serves it yet, so nothing changes while
mcp_oauth_enabledis off (the default).OAuthLoginService: describe, preview, approve, deny, exchange, refresh, revoke, list.binding_bypassable_without_auth) covers browser logins.Review
Cross-reviewed with opencode
github-copilot/gpt-6.1-sol, five rounds, clean.Testing
go test -race ./internal/runtime/... -run 'OAuth|Oauth'Related #1971