Skip to content

Prepare Research web for same-origin OAuth callbacks - #1148

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex-web-cutover-maple
Oct 12, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex-web-cutover-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Research web currently relies on the backend's default OAuth callback, so serving the app on another hostname can return sign-in to the wrong origin. Use published SDK 4.1.1 and explicitly select the initiating web origin for Google, GitHub and Apple, including the retained /desktop-auth page. Apple's popup and server initiation use the same callback.

Preserve safe conversation, project, settings and payment-return destinations through the entry page and login/signup. Native Auth entry selection, PCR configuration, production canonical origin and publication workflows stay unchanged.

Validation: full frontend formatting/lint/typecheck and 1,344 tests passed; fixed Dev-profile web build passed; built-artifact browser smoke covered destination preservation. Focused tests cover actual browser initiation callers, Apple callback equality, unsafe destinations and native handoff regressions. Existing lint warnings remain. No real-provider completion is claimed for this candidate yet.

Before deploying these callers, each host's exact callbacks must be registered with its providers and backend; unregistered preview/localhost origins intentionally fail at initiation. This PR prepares the web move and does not activate redirects or switch the canonical hostname.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@github-actions

Copy link
Copy Markdown
Contributor

Maple development preview: https://7c29211e.maple-ca8.pages.dev

Commit: 34429bc8220fafaffc6b785c9a4085d644b0b67e

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning merged commit 2f22d33 into master Oct 12, 2026
37 checks passed

This branch was successfully deployed

1 active deployment
pages-pr-1148 — 34429bc8 Deployed Oct 12, 2026 by github-actions[bot]
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.

1 participant