Repository navigation
test: verify OAuth callback completion across encrypted transports - #990
Merged
Merged
Conversation
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.
The callback allowlist tests previously stopped before Google/GitHub token exchange. Add four disposable-database cases covering successful callback completion through encrypted V1 and V2 after the selected URL is removed and the default changes.
Each case verifies the original exchange redirect URI, V2 PKCE, signed access/refresh credentials for the intended account, persisted provider identity, and rejection of an OAuth replay sent with a fresh transport request ID. Provider endpoints are loopback mocks with synthetic credentials. The existing SDK integration runner now requires all four cases and fails on missing or skipped coverage. No production handler, client, settings, or dependency changes.
Validation:
nix flake check --no-update-lock-file: passed for aarch64-darwin; other host systems were not run locally.Local validation caveat: the first database run exited with SIGSEGV after the two existing OAuth database tests passed, before the new cases ran. The macOS crash stack is in libcrypto/libpq on an r2d2 worker. A complete rerun exited successfully and passed all 29 tests, but also emitted a Kerberos mutex assertion at the same existing-suite shutdown boundary. No workaround or production code change is included; Linux CI remains an independent validation gate.
These mocks do not establish live provider, browser, released-client, or production compatibility. This PR performs no deployment or OAuth configuration and does not activate the auth host.