Skip to content

Recognize legacy OAuth 502 and identify deployed backend - #4

Merged
GothwadTech merged 1 commit into
mainfrom
arena/b23ff74b-gitplus
Oct 24, 2026
Merged

GothwadTech merged 1 commit into
mainfrom
arena/b23ff74b-gitplus

Conversation

@GothwadTech

Copy link
Copy Markdown
Collaborator

Report

User received complete:unknown_error; HTTP 502 after GitHub consent. Current normal backend 502 paths have recognized codes; an older github_exchange_failed response reproduces the diagnostic compatibility gap. A mismatched deployment is a hypothesis, not a confirmed live root cause.

Changes

  • Recognize legacy exchange failures; label unrecognized JSON as a response-contract problem without echoing unknown content or blaming secrets.
  • Add a public protocol marker and optional validated short Pages commit to OAuth config/response headers. This permits checking the custom-domain backend without another authorization attempt.
  • Include only allowlisted contract classification and validated revision in failure diagnostics.
  • Document interpreting missing/different version metadata and investigating custom-domain/API routing.

Validation

  • npm run check: 59 unit tests + TS + Vite build + Functions compilation passed.
  • 13 browser tests passed, including legacy/unrecognized 502, redaction and existing OAuth/account-switch flows.
  • npm audit --audit-level=moderate: 0 vulnerabilities. git diff --check: clean.

No authentication checks relaxed, no tokens logged, no runtime credentials accessed. This is a compatibility/diagnostic repair; the user's live authentication root cause is still unconfirmed. Continue the previously authorized integration implementation/merge workflow after CI.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying gitplus with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e07274
Status: ✅  Deploy successful!
Preview URL: https://3ed521ee.gitplus.pages.dev
Branch Preview URL: https://arena-b23ff74b-gitplus.gitplus.pages.dev

View logs

@GothwadTech
GothwadTech merged commit 55f7804 into main Oct 24, 2026
5 checks passed
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