Repository navigation
refactor(oauth2): rename require_pkce_for_public to require_pkce - #356
Merged
Merged
Conversation
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. |
wangrh0909
previously approved these changes
Nov 19, 2026
The flag applies to every authorization_code client regardless of client_type, so the _for_public suffix was a lie. Hard cut with no fallback read (same policy as the v1.6.0 allow_pkce_plain removal): deployments that set the old key explicitly must rename it or fall back to the secure default true. - read sites: SessionController login CHECK 4 + consent, AuthorizationEndpointController silent re-auth - error_description now 'PKCE (code_challenge) is required' (was '... for public clients'); login LOG_WARN no longer claims PUBLIC - openapi.yaml descriptions updated; go/python/ts SDKs regenerated (drift gate green); openapi.json description hand-synced to the new C++ ParameterInfo text (derived artifact) - shipped configs, configuration/architecture/domain guides (EN + zh-CN site mirrors), benchmark comments, .claude rules/skills, LoginEnforcementTest docstring refreshed to current behavior - also fixes the stale 'plain is supported' claims in security-architecture/oidc-guide/api-reference: S256 only since the v1.6.0 plain removal - CHANGELOG: breaking-change migration note under Unreleased Historical records intentionally untouched: the 2026-08-07 compliance audit ADR (+ zh-CN mirror) and the v1.5.0 CHANGELOG entry. Local gates green: spec-governance, sdk-drift, api-diff, double-move, migration, test-naming; llms-full.txt regenerated.
voidvec
force-pushed
the
refactor/rename-require-pkce
branch
from
November 19, 2026 06:08
3029682 to
1e6c32f
Compare
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auth.require_pkce_for_publicnever distinguishedclient_type— when enabled (the default, F-011 / RFC 9700 §2.1.1) it requires PKCE for every authorization_code client, so the_for_publicsuffix was a lie. This renames the key toauth.require_pkceas a hard cut (no fallback read, same policy as the v1.6.0allow_pkce_plainremoval) and corrects every "PUBLIC clients" claim in the shipped surface to match the actual all-clients behavior.Changes:
SessionControllerlogin CHECK 4 + consent,AuthorizationEndpointControllersilent re-auth — default staystrue.error_description"PKCE (code_challenge) is required for public clients" → "PKCE (code_challenge) is required" (login + authorize); the loginLOG_WARNno longer claims the client is PUBLIC.require_pkce: truein all 5 shipped configs (config{,.dev,.ci,.prod,.bench}.json).openapi.yamldescriptions (login body + authorize query param) → go/python/ts SDKs regenerated (regen_clients.py --checkgreen, version linkage 1.6.0);apps/server/docs/api/openapi.jsondescription hand-synced to the new C++ParameterInfotext (derived artifact per sync-points fix(admin): session persistence, token timestamps, audit log filters + test coverage #7).website/i18n/zh-CNmirrors;llms-full.txtregenerated. Also fixes the stale "plain is supported" claims in security-architecture/oidc-guide/api-reference (S256-only since the v1.6.0 plain removal,AuthorizationEndpointController.cc:411)..clauderules/skills/agents wording,LoginEnforcementTestdocstring refreshed to current behavior, CHANGELOG breaking-change migration note under Unreleased.Intentionally untouched (historical records): the 2026-08-07 compliance-audit ADR (+ zh-CN mirror), which self-documents F-011's fix in its disposition table, and the v1.5.0 CHANGELOG entry.
Migration: deployments that explicitly set
require_pkce_for_publicmust rename the key; otherwise it silently falls back to the secure defaulttrue.Type of change
Checklist
General:
CHANGELOG.mdentry added (user-visible changes)website/i18n/zh-CNmirrors whendocs/content changed)If this touches the API surface (skip otherwise):
apps/server/openapi.yamland its mirror points)api-diffandoasdiffgates addressed (a justified--force/ ignore entry is fine — explain below)Breaking changessection ofCHANGELOG.mdNotes on the checklist:
Integration_P1_Login_PKCE_Config_Exists(updated to read the new key). C++ build/integration suite not run locally (fresh worktree, no build dir) — the source changes are literals/comments/JSON keys only; relying on CI for the compile legs.