Repository navigation
feat(auth): implement OIDC and token lifecycle - #4
Closed
PiquelChips wants to merge 27 commits into
Closed
PiquelChips wants to merge 27 commits into
PiquelChips wants to merge 27 commits into
Conversation
PiquelChips
force-pushed
the
auth/03-oidc-token-lifecycle
branch
from
July 14, 2026 13:35
765d495 to
fb085fc
Compare
PiquelChips
force-pushed
the
auth/03-oidc-token-lifecycle
branch
from
July 14, 2026 14:51
fb085fc to
23f4a5d
Compare
PiquelChips
force-pushed
the
auth/03-oidc-token-lifecycle
branch
from
July 14, 2026 15:40
23f4a5d to
b1bf5b0
Compare
- Add active-session/profile helpers and transactional profile updates - Tighten email normalization and enforce active ownership serialization - Scope session and verified-email lookups to active accounts
- Allow registration ceremonies to start without a user row - Commit ceremony consumption before finishing WebAuthn flows - Add enrollment ceremony support and return all active passkeys
- Sign short-lived ES256 tokens for passkey enrollment and revocation - Require fresh purpose authorization before sensitive passkey actions - Add database support and coverage for single-use authorization
PiquelChips
marked this pull request as ready for review
July 15, 2026 10:48
# Conflicts: # Cargo.toml # apps/auth-service/Cargo.toml # apps/auth-service/src/lib.rs # apps/auth-service/src/main.rs # crates/database/src/models.rs # crates/database/src/repositories.rs # crates/database/tests/identity.rs
…fecycle # Conflicts: # Cargo.lock # Cargo.toml # apps/auth-service/Cargo.toml # apps/auth-service/src/lib.rs # apps/auth-service/src/main.rs # apps/auth-service/src/signing.rs # crates/database/src/models.rs # crates/database/src/repositories.rs # crates/database/tests/identity.rs
PiquelChips
added a commit
that referenced
this pull request
Sep 12, 2026
The prototype cannot complete the intended passkey/social/OIDC flows, and its stacked PRs add unsafe email linking and extra runtimes. Replace that stack with one PostgreSQL-backed Rust auth binary containing static login/onboarding/consent pages, plus a separate piquel.fr settings frontend. Passkeys authorize a reusable two-minute settings window; social signup requires a first passkey, and provider linking requires explicit passkey proof. Add minimal CLI invitations, configured OIDC clients, consent, RS256 tokens, refresh rotation and logout. Remove unused prototype modules and superseded plans. Validation: 24 backend tests passed with none skipped, including real PostgreSQL, signed WebAuthn assertions and signed provider fixtures. Real Chromium exercised signup, cross-origin settings, passkey management, OIDC consent/PKCE, RS256 verification, userinfo and SSO. Release build, frontend checks, Clippy, and Rust/npm dependency audits passed. Live provider credentials and physical Apple/Google passkey devices remain unverified. Supersedes #4, #5, #6, #7, #8, #9 and #10. Requires a fresh database; prototype compatibility and deployment are outside this release. Model: GPT-6. Harness: Codex. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Add passkey-first authentication service with OIDC, federation, and web apps > - Rewrites the auth service to support passkey sign-in, registration, social identity linking, enrollment, and management flows > - Adds OIDC client management, RS256 token signing/verification, and GitHub/Google federation repository support > - Introduces SvelteKit frontends for authentication and settings, which are built and embedded as static assets in the service > - Adds database migrations for OIDC, federation, security, and removes `internal_events` and `purpose_authorizations` tables > - Risk: `configuration.SecretReference` rejects KMS URIs, `auth-protocol` removes `AccessTokenClaims` and `text_id` macro, and `PasskeyApplication::new` rejects subdomain and non-HTTPS origins > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 4738fba.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Member
Author
|
Superseded by the merged minimal authentication release in #12, which replaces this prototype stack and includes the relevant functionality within the agreed release scope. Model: GPT-6. Harness: Codex. |
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.
What changed
Implements Plan 03 as an OIDC Authorization Code + PKCE authority: discovery, JWKS, authorization continuations, authorization presentation/decision, code exchange, ES256 access and ID tokens, rotating opaque refresh tokens, revocation, userinfo, and POST logout.
Clients have exact redirect/logout URIs, scopes, audiences, enabled state, and refresh policy. Refresh rotation re-applies current policy, revokes replayed families, and records a sanitized replay audit signal. Authorization state is bounded, server-side, and single use.
Root cause addressed
The prior slice had parsing primitives but no deployable browser continuation or complete token lifecycle. All advertised endpoints now execute through typed transactional repositories.
Validation