Skip to content

Improve Google callback compatibility and add safe diagnostics - #432

Merged
asselstine merged 1 commit into
mainfrom
codex/google-callback-diagnostics
Nov 24, 2026
Merged

asselstine merged 1 commit into
mainfrom
codex/google-callback-diagnostics

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Changes

  • Accept the exact signed Boolean true or string "true" for Google's email-verification claim. The Google OIDC reference specifies the Boolean, while its authorization-code guide shows the string in an ID-token example. False and other representations still fail validation. Signature, issuer, audience, nonce and time checks are unchanged.
  • Log failed callback stages as factorize.google_callback_failed with an allowlisted code and a Cloudflare Ray ID, when safely formatted. Never log callback URLs, query fields, cookies, OAuth credentials, account identifiers, emails, provider details, or exception text. Public redirects are unchanged.
  • The interoperability gap is confirmed in source and docs, not confirmed as the cause of the observed production failure. Diagnostics will distinguish later failures after deployment.

Validation

243 local API tests against isolated PostgreSQL (including eight mocked callback tests), 18 static checks, and OpenAPI/docs validation passed. The changes merge cleanly alongside #431 in a local merge simulation. No real callback replay, live account access, or manual deployment.

@asselstine
asselstine merged commit 84128c5 into main Nov 24, 2026
8 checks passed
@asselstine
asselstine deleted the codex/google-callback-diagnostics branch November 24, 2026 19:24
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