Skip to content

Add GitHub OAuth App + local tokens and universal Accounts menu - #2

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

GothwadTech merged 1 commit into
mainfrom
arena/a32f5834-gitplus

Conversation

@GothwadTech

Copy link
Copy Markdown
Collaborator

Summary

  • Keep mandatory Gothwad Accounts SSO; add GitHub OAuth App alongside PAT with local owner-bound sessionStorage only (no D1/vault/cross-device sync).
  • Implement exact-origin protected Pages routes, state/S256 PKCE, encrypted short-lived HttpOnly transaction cookie, verified-owner callback and code exchange. Request broad base scopes; deletion requires an explicit checkbox.
  • Replace local account menu with the actual Accounts-hosted universal widget, sanitized state, account-switch guards, and separately confirmed ecosystem/local sign-out semantics.
  • Document runtime OAuth App registration, exact callback, CLI secret setup when Pages dashboard editing is disabled, revocation and hosted-script trust boundaries.

Validation

  • npm run check: 52 unit tests, TypeScript, Vite production build, Pages Functions compilation passed.
  • Playwright: 8 browser tests passed with real built assets, pinned real widget fixtures and mocked providers, including stale OAuth completion after account switching.
  • npm audit --audit-level=moderate: 0 vulnerabilities.
  • git diff --check: clean.

Operator follow-up

No real OAuth credentials were configured. Set Pages runtime GITHUB_CLIENT_ID / encrypted GITHUB_CLIENT_SECRET and redeploy; PAT works without them. docs/github-oauth.md includes prompted wrangler pages secret put commands (no VITE_*). Real first-party SSO/OAuth/hosted-module checks and disposable-repo writes still need live acceptance. No changes to Accounts/Mail/Store/Drive.

User authorized implementation and merge after checks.

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: 6e48452
Status: ✅  Deploy successful!
Preview URL: https://3ae98a1b.gitplus.pages.dev
Branch Preview URL: https://arena-a32f5834-gitplus.gitplus.pages.dev

View logs

@GothwadTech
GothwadTech merged commit 8810c67 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