Repository navigation
docs: bring ADR 082 in line with the identity model and accept it - #2864
Conversation
ADR 082 is rewritten in place and set to Accepted. The app becomes the Application, with its clients and APIs in one document. PKCE is required for public clients and optional for confidential ones (RFC 9700), iss stays required, a request without resource gets a token for the client's own backend, and the first steps ship an OAuth server before OpenID Connect. The identity model follows the same names and loses what ADR 082 now decides. The ADR index row is updated. Closes #2785 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FXFxLQvib4hL15NSTv2STt
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
🟡 Changes recommended
The application-wide party policy can allow self-registering third-party clients to inherit first-party consent exemptions, leaving a critical consent-bypass risk unresolved.
4 open issues
What changed in this PR
This documentation-only PR accepts ADR 082 and aligns it with the identity model, establishing a shared contract for Applications, Clients, and the planned OAuth/OpenID Connect server.
Changes:
- Standardizes Application naming and documents creation, credentials, stable client IDs, and revision handling.
- Clarifies the protocol profile and delivery sequence: confidential OAuth clients first, then OpenID Connect, public clients, protected APIs, and MCP.
- Updates the ADR index and records changes since the proposal and required ADR 081 follow-up work.
| File | Description |
|---|---|
docs/design/api/identity-model.md |
Aligns terminology and resource lifecycle with ADR 082. |
docs/adrs/README.md |
Marks ADR 082 Accepted and updates its summary. |
docs/adrs/082-oauth-and-oidc-server.md |
Records the accepted application model, protocol decisions, and delivery sequence. |
Review effort: Balanced
…f step 2 Addresses the Copilot review on #2864: the party and consent policy are fields of each client, so a self-registering client never inherits first-party from the application it joins; consent names the requesting client, not the application; a server-generated client id sent back unchanged is accepted; step 2 serves first-party clients only until consent ships. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FXFxLQvib4hL15NSTv2STt
#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>
peintnermax
left a comment
There was a problem hiding this comment.
Read against the note in #2860. The decisions here match what the note proposes, and two things I had not asked for make it better: the CLI-generated client_id and the party on each client. Five points inline, one of which I think should change before this is accepted (introspection); the others are wording.
…nd bring back per-API introspection - Self-registered clients are records of their own that reference an application and an API; deploy never touches them (T1). - A file whose slug a registered application holds is refused; POST /applications revises only for the owner, and the slug is unique across both paths (T2, T3). - Per-API introspection is back in the identity model and ships in step 5 (T4). - Wording: PKCE bullet, #1013 deletion, live registered applications, developer-named secret variable, primary origin, unauthorized_client in step 2, the lane and iss, no registration block in the example (T5 to T12). - Review fixes: owner and slug wording, introspection amends ADR 037, risks, ADR 081 §12 printed file, identity model leftovers. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The PR description and ADR disagree on introspection support, and the private-API restriction incorrectly excludes registered first-party clients based on how their application is managed.
2 open issues
4 resolved since last review
Review effort: Balanced
- ADR 082 §5: a first-party client calls the APIs its application lists, and a third-party client may request only APIs open to third parties. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
I had a look at this from the CLI DX side and it looks good to me. I like that One of the parts I've noticed (not a blocker) is
So I would prefix-group them under
Alternatively we could group them under This doesn't need to hold up the ADR. |
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>
|
On the CLI grouping: I'd be fine with |
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
@mridang Thanks, agreed. c1b2e42 renames it to |
|
@peintnermax Done in c1b2e42: ADR 082 §12 and the identity model now say |
#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>



Context
Summary
ADR 082 is rewritten in place and set to Accepted. The identity model follows the same names and no longer repeats what ADR 082 now decides. The ADR index row is updated. The ADR ends with a "Changes since proposed" section that lists every change for reviewers. It also lists what the ADR 081 follow-up must amend. ADR 081 is not touched here on purpose.
Decisions recorded in ADR 082:
/applications, the CLI iszitadel application, and the files are.zitadel/applications/<slug>.json. A client stays a client.code_challenge_methods_supported.isson authorization responses (RFC 9207) stays required. It may land after the first step, because adding it later breaks no client. The metadata advertises it only once it ships.zitadel application createwrites.zitadel/oauth.jsonwhen the issuer is off, and says so.zitadel oauth enablestays for doing that alone.resourcegets an access token whoseaudis the client id. It is for the client's own backend, and for userinfo once OpenID Connect ships. The old "userinfo only" wording is gone.client_idnever changes.resource; the application's document never lists it.POST /applicationscreates an application only when its slug is free in the project and revises a registered one only for its owner, never a declared one. Slugs are unique per project across declared and registered applications. The release build refuses a file whose slug a registered application holds. A registered application is resolved live; no release pins it. The developer picks the client secret's variable name.Validation
moon run docs:lintpasses.moon run docs:typecheckpasses.node scripts/check-pr-title.mjs --title "docs: bring ADR 082 in line with the identity model and accept it"passes..zitadel/apps,zitadel apps,POST /apps,.zitadel/apisor "userinfo only" is left in the two documents. There are no em or en dashes in the new text. Every relative link and anchor in the diff resolves.opencode-review) and an adversarial Opus read. Accepted findings were applied before this PR.Release notes / changeset
No changeset required. No shipped behavior changed.
Notes
For #1425. The third acceptance criterion of #2785 asks that the "update through CLI/API" criterion of #1425 read as follows. We propose this wording for the epic's owner to paste:
We did not edit #1425.
Answers to the review comment on #2785 (peintnermax's five points):
iss: PKCE is optional for confidential clients only and required for public ones.issis required, and may ship a step later without breaking clients.application createturns the issuer on when it is off.oauth enablestays.resourcegets an access token withaud= client id. The ID token comes with OpenID Connect.🤖 Generated with Claude Code
https://claude.ai/code/session_01FXFxLQvib4hL15NSTv2STt