Repository navigation
Prepare Research web for same-origin OAuth callbacks - #1148
Merged
Merged
Conversation
Contributor
|
Maple development preview: https://7c29211e.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
This branch was successfully deployed
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.
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-authpage. 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.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.