Skip to content

test: verify OAuth callback completion across encrypted transports - #990

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-auth-callback-completion-tests
Sep 21, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-auth-callback-completion-tests

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

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:

  • Disposable database helper: 29 passed (20 AEAD/database, 2 OAuth database, 7 callback settings/transport, including all 4 new cases); zero skipped, temporary cluster removed.
  • Backend format, Clippy for all targets/features with warnings denied, and all-feature unit suite: 714 passed, 30 intentionally ignored; selected database tests execute separately through the helper above.
  • Repository workflow lint and Python suite: 319 passed.
  • Root nix flake check --no-update-lock-file: passed for aarch64-darwin; other host systems were not run locally.
  • Independent read-only source review: no blockers.

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.

@AnthonyRonning
AnthonyRonning merged commit 2703fc2 into master Sep 21, 2026
21 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-auth-callback-completion-tests branch September 21, 2026 22:49
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