Skip to content

feat: OIDC external identity providers (Google, Apple, generic) - #51

Open
TimerErTim-Agent wants to merge 1 commit into
feat/single-step-signup-unverified-limitfrom
feat/oidc-identity-providers
Open

TimerErTim-Agent wants to merge 1 commit into
feat/single-step-signup-unverified-limitfrom
feat/oidc-identity-providers

Conversation

@TimerErTim-Agent

Copy link
Copy Markdown
Collaborator

Stacked on #50.

Summary

  • Add OpenID Connect (Authorization Code + PKCE S256 + validated state & nonce) support for Google (query), Apple (form_post + ES256 client-secret JWT), and generic configurable OIDC providers via new crates/friendarazzi-oidc adapter wired into backend/server.
  • Persist external_identity, oidc_auth_state, and oidc_exchange_code tables via SQLite migration v9, keeping benutzer and konto separated so passwordless OIDC accounts simply hold 0 konto rows.
  • Enforce verified email from providers (accepting Apple private-relay emails), never silently link accounts by email (returning an explicit conflict state guiding players to sign in and link under /optionen), and keep zero tokens out of browser redirect URLs via a single-use 120s exchange code (POST /api/auth/oidc/exchange).
  • Add authenticated account login-method management (GET /api/konto/anmeldemethoden, POST /api/konto/anmeldemethoden/{provider}/start, DELETE /api/konto/anmeldemethoden/{identity_id} with last-method unlink protection 409 Conflict, and POST /api/konto/passwort to set an initial local password).
  • Extend BenutzerLöschen / POST /api/benutzer/loeschung and /optionen so passwordless OIDC users can confirm account deletion via fresh OIDC re-authentication (deleteReauth).
  • Dynamically show configured OIDC provider buttons on /anmeldung & /registrierung, add /anmeldung/oidc callback exchange route, and add Anmeldemethoden management UI in /optionen.

Closes #41
Closes #43

@TimerErTim
TimerErTim added this pull request to stack #52 November 28, 2026 17:00

This branch has not been deployed

No deployments
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