M2 task 2.1: /api/auth/idp/* signed-state OIDC surface (IDA-01/03/10) #131
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#131
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dev plan task 2.1 (Phase 2, milestone M2): the Zitadel-first OIDC surface replacing the legacy per-provider /oidc/{provider}/* flows at decommission.
Contract (02-architecture §4, IDA-01/03/10):
Acceptance: forged/tampered/expired/replayed states rejected; unverified-email tokens rejected; passkey-at-IdP admin gets a full session; open registration lands no_workspace (requires org_state); invite-in-state lands in the tenant; auto-link does not duplicate accounts.
LANDED: PR #132 squash-merged (PR runs api-ci 12212 + security-ci 12213 green; suite 970/0/39, coverage 87.97%). Full surface: /api/auth/idp/authorize (exact-match redirect allowlist, PKCE S256, IDA-10 signed state via IKeyStore server-identity key — TTL 10 min, single-use nonces in idp_state_nonces, verifier bound in state) + /api/auth/idp/callback (fail-closed consume, exchange, IDA-09 email_verified enforcement + audit, sub-primary resolution: login → auto-link-by-verified-email → open registration no_workspace → invite provisioning via Org seam; ADR-012 amr gate; JSON response with requires[]). Flag Auth:IdpEnabled; SEC-04 registry + matrix rows; sanctioned Identity→Org seam entry in ModuleMap. Realm separation (platform-admins) remains task 2.8; Zitadel realm config lands with staging bring-up.