Skip to content

feat(auth): ship passkey-first authentication service - #12

Merged
PiquelChips merged 1 commit into
mainfrom
t3code/minimal-auth-service
Sep 12, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
t3code/minimal-auth-service

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

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.

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 summarized 4738fba.

@macroscopeapp

macroscopeapp Bot commented Sep 12, 2026

Copy link
Copy Markdown

Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).

This review would cost an estimated $22.80, which exceeds your per-review limit of $10.00.

The top 3 files driving up this estimate:

File Diff Size Estimate
apps/auth-service/src/passkey.rs 72.44KB $3.62
apps/auth-service/src/oidc.rs 44.00KB $2.20
apps/auth-service/src/federation.rs 38.16KB $1.91

Tip

To get this pull request reviewed, you can:

  1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
  2. Exclude the file(s) above from review by adding a pattern to your .macroscope/ignore.md — note that creating this file replaces Macroscope's built-in default ignores rather than extending them.
  3. Raise your cost limit in your workspace billing settings.

Turn off this reminder going forward

@PiquelChips
PiquelChips merged commit fb6db91 into main Sep 12, 2026
1 check passed
@PiquelChips PiquelChips added this to the 0.1 milestone Oct 14, 2026
@PiquelChips PiquelChips self-assigned this Oct 16, 2026
@PiquelChips PiquelChips added enhancement New feature or request apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI labels Oct 16, 2026
@PiquelChips
PiquelChips deleted the t3code/minimal-auth-service branch November 10, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant