Skip to content

Fix Google OAuth redirects for Windows and Linux - #44

Merged
Eoic merged 1 commit into
developmentfrom
fix/desktop-google-oauth-redirect
Oct 24, 2026
Merged

Eoic merged 1 commit into
developmentfrom
fix/desktop-google-oauth-redirect

Conversation

@Eoic

@Eoic Eoic commented Oct 24, 2026

Copy link
Copy Markdown
Member

Windows and Linux Google sign-in fails before reaching Google because production redirect validation rejects the client's fixed callback, http://localhost:43821/auth/callback. Allow that exact URI and document its relationship to the public Google callback. Existing host and scheme configuration continues to apply.

Fixes #43. Covers the desktop redirect portion of FR-1_3.

Validation:

  • Reproduced the reported VALIDATION_ERROR against the public API.
  • Confirmed the desktop regression fails before the fix while mobile and web pass.
  • tools/papyrus test server -- tests/api/routes/test_auth.py tests/services/test_auth.py: 54 passed, including production-mode callback delivery/code exchange and rejection of unexpected redirect URLs. Google identity exchange is mocked.
  • tools/papyrus check server: Ruff lint/format and Mypy passed.
  • git diff --check: passed.

Server deployment is required. No client rebuild, schema migration, dependency, or version change is needed. The client's fixed port remains unchanged. Real Google sign-in on Windows remains to be verified after deployment.

Copilot AI balanced review requested due to automatic review settings October 24, 2026 13:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T13:48:34.585291Z 719494b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Eoic Eoic self-assigned this Oct 24, 2026
@Eoic
Eoic enabled auto-merge October 24, 2026 13:49
@Eoic
Eoic merged commit b3553b1 into development Oct 24, 2026
2 checks passed
@Eoic
Eoic deleted the fix/desktop-google-oauth-redirect branch October 24, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow the Windows and Linux Google OAuth callback in production

2 participants