Repository navigation
feat(oauth): brand the browser page shown after sign-in - #1666
Merged
Merged
Conversation
The OAuth callback page was bare unstyled HTML. It now carries the MCPProxy logo (inlined SVG, no extra route or network fetch), a success/failure card with light and dark themes, and links to the website, the OAuth docs page and the GitHub repository. The 2s window.close() on success is dropped: where it fires it hides the new links, and browsers ignore it for tabs they did not open by script anyway. Title and message stay escaped (html/template), since the failure message embeds the provider's error text. The response now declares charset=utf-8.
Deploying mcpproxy-docs with
|
| Latest commit: |
dbd3709
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1d7326f1.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://claude-post-auth-branding-li.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 39114784481 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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
The browser page shown after an upstream OAuth sign-in (
/oauth/callbackon the loopback callback listener) was bare, unstyled HTML. It now shows:target=_blank,rel="noopener noreferrer").Behaviour notes:
window.close()after 2s. Where that fires it hides the new links; for tabs the user's browser opened normally it is ignored anyway. The page now stays open.html/template(internal/oauth/callback_page.go); title and message remain escaped, since the failure message embeds the provider'serror/error_description.Content-Type: text/html; charset=utf-8.Testing
go test -race ./internal/oauth— newcallback_page_test.gocovers branding/links, outcome variants (no auto-close), and escaping of injected provider text; existing callback dispatch tests unchanged and green.tests/oauthserver/cmd/server+ a scratchmcpproxy serve: success flow (server wentready, 2 tools),-auth-error access_deniedfailure page, light/dark and 375px width.