Repository navigation
docs: decide remembered consent for OAuth clients - #3573
Conversation
Amend ADR 082 (Proposed): a consent is remembered per person, client and API. A client whose identity is assured (a secret, or an https answer) skips the step for what it was granted; a client that returns to a loopback address or a private-use scheme is asked each time with the last choice ticked. Scopes of operations that return a credential are never remembered. A person lists and revokes their consents, and a revoke ends the client's refresh grants. ADR 092 points to it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmUEzNb3SNs7Rj5USYf
…o the policy work A remembered consent holds the person's answer for every scope offered, yes or no, so a client that asks for everything skips the step once the person answered, and is issued the scopes answered yes. A scope that is never remembered no longer forces the step: a skip does not issue it. A declined scope is asked for again with prompt=consent after the API's auth.scope_insufficient refusal. How long a consent lasts, and whether use renews it, is left open for the policy work; the me operations become two tools once #3559 lands. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmUEzNb3SNs7Rj5USYf
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
The amendment as the code's pull request now has it: a consent given to a client whose registration has changed counts as none; a revoke also ends the client's unredeemed codes; a request that names a scope that is never remembered always shows the step, so a client that asks for every listed scope is asked each time; delete scopes start unticked on the person's device; a password set ends the person's consents; and what a password set ends, like a consent's lifetime, is left to the policy work. A person reaching revoke from the Console is a condition before the skip is switched on for the hosted cloud. The text was written in the session https://claude.ai/code/session_0137eGmUEzNb3SNs7Rj5USYf and is taken from its branch unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
The ADR still contains contradictions about consent re-prompt timing, mandatory first-party PAT consent, and whether PAT records retain the creating client or consent association.
3 open issues
What changed in this PR
This docs-only PR proposes remembered OAuth consent rules for Zitadel’s authorization server, ahead of the implementation in #3574.
Changes:
- Defines consent storage, skip conditions, expiry and mandatory prompts.
- Documents revocation, password-reset effects and hosted-cloud rollout requirements.
- Updates the MCP roadmap to reference the proposal.
| File | Description |
|---|---|
docs/adrs/092-mcp-server.md |
Links the MCP consent plan to the proposed amendment. |
docs/adrs/082-oauth-and-oidc-server.md |
Defines remembered consent behavior and remaining policy decisions. |
Review effort: Balanced
| client, and none of the earlier answers ticks its step or carries over | ||
| into the person's new answer), when the request says | ||
| `prompt=consent`, and when the consent is older than 90 days. Skipping the | ||
| step does not renew it: an assured client asks at most once in 90 days. |
| - **A first-party client is unchanged.** It is asked nothing (§3, and the | ||
| platform issuer's `oauth.first_party_clients`); remembering never makes a | ||
| client first-party, nor gives a client a scope it was not granted. |
| open question for ADR 095, which notes that nothing yet records which | ||
| client created one. |
The ADR text it carries is on this branch through claude/remembered-consent-adr. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmUEzNb3SNs7Rj5USYf

Context
Summary
A person who connected an agent was asked the same consent question every time it signed them in, because nothing stored their answer. This decides what is remembered and when the step is skipped:
httpshost that is not a loopback address.prompt=consent, and a consent older than 90 days. Skipping does not renew it. A consent given to a client whose registration has since changed counts as none.x-zitadel-returns-secret, and the scope that creates a personal access token. So a client that asks for every scope the metadata lists, as MCP clients do, is asked at every sign-in until credential-returning operations have a scope of their own.Validation
node scripts/check-pr-title.mjs --title "…"passes.Release notes / changeset
Notes
delegation_id, and keying a consent by API rather than by the identifier the request named.https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
Generated by Claude Code