Repository navigation
Phase 1.5 Round 2: identity foundation + Google OAuth - #1
Merged
Merged
Conversation
…OAuth Phase 1.5 Round 2 vertical slice: a user authenticates to a self-hosted backend from the hosted PWA via Google OAuth with backend-issued sessions, correct account-linking semantics, and safe challenge binding. - refresh rotation: SHA-256(jti)-keyed atomic rotation (exactly-one-winner under concurrency), TTL from JWT_REFRESH_EXPIRES_IN, session hygiene and stable per-class 401 machine codes (B-P1-1/2/3/5) - identity normalization: canonical lowercase usernames at write with case-collision-preflight migration (D-10) - identity foundation: nullable passwordHash, googleId/githubId unique, minecraftVerified, single-use hash-only 5-min OAuth challenge table (D-5) - Google OAuth: local JWKS verification, challenge-bound nonce, explicit LinkConfirmationRequired linking (D-7), same session path, capability flag - cross-backend isolation: challenge rows per backend DB (confused-deputy proof), full unit/e2e matrix incl. live concurrency and isolation tests
- SPEC: D-5/D-7/D-10/D-11 adopted; seven-table schema incl. oauth_challenges; current-state refresh/identity sections; DELIVERED backlog markers; OAuth endpoint contract; Appendix A identity + MIT license truth - README: Phase 1.5 Google OAuth shipped; OAuth endpoints in API table; MIT - minepanel-site.json: Phase 1.5 50% with Google OAuth done (live roadmap data) - package.json: license MIT (D-11); .env.example: JWT_REFRESH_EXPIRES_IN, GOOGLE_CLIENT_ID, and removed stray typescript-language-server devDep
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.
Vertical slice: hosted Google OAuth login with backend-issued sessions, explicit link confirmation, hardened session substrate.