Repository navigation
docs: propose one OAuth server for customers' applications and Zitadel's own clients - #2860
peintnermax wants to merge 13 commits into
Conversation
…l's own clients A design note for discussion, docs/design/api/oauth-server-integration.md. It reads ADR 081, ADR 082, the identity model, #1283, the #1425 epic and the two prototype PRs (#2452, #2451) against main, and says how the customer's authorization server and the platform project's become one, switched on per project. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
#2785 settles Application as the name and takes #2452 as a reference only, so those two stop being open questions. The note now also records that #2785 and #2794/#2795 disagree on PKCE and `iss`, that `application create` deploys nothing and the developer sets a declared client's secret, and asks whether `application create` turns the issuer on. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A review against the issues, the ADRs and the code found claims that had gone stale and contradictions that live in the ADRs and issues rather than in the note. The note now: - corrects the PKCE and iss conflict (only #2795 and the ADRs still require them), the library's authorize, and openid in #2451's metadata; - lists six decisions with their owners: a stored issuer, the response to a request without resource, registration as a project switch, the sealed request as an ADR 081 amendment, prompt=login and max_age, and what must hold before the platform project's issuer goes on; - moves the ID token and discovery into the first scope's server step and gates the platform project on those preconditions; - adds the cloud origin shared with the website, the platform issuer following public_base, sign-out, audit, limits and key rotation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r note #1425 dropped OpenID Connect from its first scope on 2026-11-06 (#2801): no ID token, no openid-configuration, an access token whose audience is the client (#2796), signed with the project's EdDSA key (#2797), and an end-to-end lane with an OAuth library (#2806). The note follows: D2 is settled, the sequence is OAuth only with OpenID Connect first among what returns, and it says what the iteration costs. D1 gains what #2793's derived issuer does and does not cover. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…card Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ards D1 no longer proposes an issuer stored in oauth.json. Origins are project data a customer changes without a deploy, a staging origin is meant to be an issuer, and a domain move needs two issuers side by side. #2793's rule stays, with three guards: the code records its issuer, origin-dependent answers are never stored by a shared cache, and the customer sees which origins are issuers and is warned before removing one, in the CLI now and in the console later. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…three The decisions table gains a state column for 2026-11-06, and each open question names where it was raised. Three decisions that were only remarks inside the challenges become D7 to D9: one cookie per flow, where the cloud's routing rules live, and whether EdDSA alone is enough for the first iteration. D3 no longer reads as blocking the first scope. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
#2864 rewrites ADR 082 and sets it to Accepted. The note now records what that settles: PKCE required for public clients and recommended for confidential ones, `iss` required but allowed to ship after the first step, `application create` turning the issuer on when it is off, APIs as entries of the application document, the self-registering client joining the application of its first `resource`, and ADR 082's sequence. D2 and D9 are settled, open questions 2 and 3 answered, and D4 and D7 noted as missing from the ADR 081 amendments #2864 lists. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Consent is a step inside the one flow that answers the authorization request, not a round trip of its own; the note now walks through it, what a later request and a revocation do, and that #2451's step is all or nothing. Stripe's MCP consent stands for the other design, a per-resource selection, and what Zitadel would need for it. Open question 12 asks whether a user may allow part of a request. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A self-registering client is a record of its own that references the application and API of its first resource, introspection comes per API in step 5 for the clients an API names, and until consent ships the server refuses third-party clients with unauthorized_client. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The design document still misrepresents existing audit events, the agreed login approach, missing security acceptance criteria, and the API mock’s licensing and publication status.
4 open issues
What changed in this PR
Adds a draft design note proposing one per-project OAuth server for customer applications and Zitadel’s own CLI and MCP clients. It connects the application model and OAuth epic to the two prototypes without changing shipped behavior.
Changes:
- Describes shared request flows, issuer differences, and platform-project configuration.
- Compares prototype capabilities with the epic’s OAuth-only first scope and later OpenID Connect support.
- Outlines SDK and CLI responsibilities, unresolved decisions, risks, and a proposed delivery sequence.
| File | Description |
|---|---|
docs/design/api/oauth-server-integration.md |
Adds the integration proposal, prototype comparison, and phased implementation plan. |
Review effort: Balanced
Name #2451's consent events and the gaps that remain, separate the published test kit from the private API mock and its license, record the agreed login approach in the first-scope steps, and make the audit and limit criteria an explicit task of step 3. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
#2864 groups the switch under a new `settings` group that later protocol switches share. The note follows, and credits the PKCE downgrade rule to RFC 9700 now that ADR 082 §2 no longer spells it out. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The pieces a person's token on /mcp needs were built once in the closed prototype #2451, are read against the epic in #2860, and public clients are being built again in #3409. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U

Context
Summary
docs/design/api/oauth-server-integration.md, marked "Draft for discussion". It is an investigation, not a decision record.zitadelapplication ships as a document in the release the server already builds at start, instead of Go code.applicationagainstapp), one project against per project, and opposite halves of the token endpoint.openid-configuration, and an access token whose audience is the client. OpenID Connect is a later layer, and the first thing to return.zitadel settings oauth enable): PKCE required for public clients only,issrequired but allowed after the first step,application createturning the issuer on, APIs inside the application document. That settles D2 and D9 and answers open questions 2 and 3.Validation
origin/main.node scripts/check-pr-title.mjs --title "docs: propose one OAuth server for customers' applications and Zitadel's own clients"main, the two PR branches and the issues as of 2026-11-06. The Mermaid block was not rendered locally.Release notes / changeset
Notes
identity-model.mdis not either.iss.🤖 Generated with Claude Code