Repository navigation
feat(platform-objects): the Register SSO Provider form names the token, authorization and JWKS endpoints - #33417
Conversation
…uthorization and JWKS endpoints The register_sso_provider action gains optional Token URL, Authorization URL and JWKS URL params (type url) beside the discovery and userinfo URLs, each posted to the register bridge under the oidcConfig member of the same name, so an identity provider whose endpoints sit on hosts other than its issuer (Google) registers from Setup. A plugin-auth pin drives the form's url params through the bridge into oidcConfig. Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo Co-authored-by: Claude <noreply@anthropic.com>
…ndpoint params; docs and changeset Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo Co-authored-by: Claude <noreply@anthropic.com>
…nfig under its own name Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 3 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e1dfb03fc8f49545009ea2073917ed54afa1216c && git checkout e1dfb03fc8f49545009ea2073917ed54afa1216c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin df9fe9463020a58b29a61f98605b91e7fbb307c1 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec && git checkout -B drift-repro df9fe9463020a58b29a61f98605b91e7fbb307c1 && git merge --no-ff 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec
node scripts/docs-audit/affected-docs.mjs --json df9fe9463020a58b29a61f98605b91e7fbb307c1
|
|
domain:server#5 · os-elon-musk · session_016WV4d1NJYFGVi2FRztyBNo Request: review · area A1 · Fixes #33395 · head 4f536ba · requested at 2026-11-14T19:48Z Local: platform-objects 122 files / 1957 passed; plugin-auth full suite 272 files / 5247 passed at e890295, touched pin files 72/72 after the origin/main merge; typecheck exit 0; eslint exit 0; two ablations (form param renamed: 2 red; bridge pass-through removed: 3 red) in the os-dev report (#33395 comment 6883240624); derived gates 98: 93 exit 0, 5 NOT MEASURED (verify lock held by another session; CI runs them). Declarations: Clause-② yes (widening), Metadata-protocol none. |
|
Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 4f536ba · 2026-11-14T19:49:29Z review#3. |
Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
domain:server#5 · os-elon-musk · session_016WV4d1NJYFGVi2FRztyBNo ACCEPT · area A1 · Fixes #33395 · head 4f536ba · 2026-11-14T20:35Z
|
Fixes #33395
Clause-②: yes (widening) — the
register_sso_provideraction onsys_sso_providergains three optional params,authorizationEndpoint,tokenEndpointandjwksEndpoint(typeurl), and the object translation bundles gain their label and help-text keys. The register bridge already accepted all three; nothing accepted before is refused now.Metadata-protocol: none
维护者速读
oidcConfig。sys-sso-provider.object.ts并重新生成翻译包。packages/platform-objects/src/identity/sys-sso-provider.object.ts(三个新参数与帮助文字);packages/plugins/plugin-auth/src/register-sso-provider.test.ts(新 describe:表单参数到oidcConfig的钉子);content/docs/permissions/sso.mdx。pnpm --filter @objectstack/plugin-auth exec vitest run src/register-sso-provider.test.ts,预期 43 个用例全绿,其中「the Setup form register_sso_provider names each endpoint …」两条通过。What changes
sys_sso_provideractionregister_sso_providergains optional Authorization URL (authorizationEndpoint), Token URL (tokenEndpoint) and JWKS URL (jwksEndpoint) params, typeurl, betweendiscoveryEndpointanduserInfoEndpoint(the order of the bridge's own endpoint list). Each help text says the endpoint is kept instead of the one the discovery document names, is trusted for this provider, and is to be named when the registration is refused because the discovery document names that endpoint on a host the server does not trust; the token and JWKS texts give Google's URL as the example.runRegisterSsoProviderFromFormalready carries all five named endpoints intooidcConfigby name (landed in fix(plugin-auth)!: the Register SSO Provider bridge takes every endpoint /sso/register takes, and the domain-verification answer carries the registered domain #33314); the new params reach it under exactly those names, now pinned.node scripts/check-i18n-bundles.mjs --write --filter=platform-objects(no hand edit). The translated locales carry the English text for the six new keys until translated.content/docs/permissions/sso.mdxnames the four endpoint fields of the Setup form and says a Google registration can fill Token URL, JWKS URL and Userinfo URL there..changeset/33395-sso-form-named-endpoints.md,@objectstack/platform-objectspatch.Tests
packages/plugins/plugin-auth/src/register-sso-provider.test.ts, new top-level describe "the Setup form register_sso_provider names each endpoint under the oidcConfig member the bridge carries it to": (1) the form'surlparams are exactly the five endpoints the bridge takes, each optional; (2) everyurlparam the form posts, driven throughrunRegisterSsoProviderFromForm, arrives inoidcConfigunder its own name. It reads the action from@objectstack/platform-objects(resolved throughdist/), so it crosses the form-to-bridge seam.packages/platform-objects/src/platform-objects.test.ts: the existing param-list pin now lists the three new params, and the trusted-endpoint help-text check covers all five endpoints.Acceptance notes
Verification
Final head before this PR:
4f536ba5e(main merged atb63c89493..plus 5 incoming commits; the incoming ones touch plugin-auth files this PR does not).platform-objects: build, test, typecheck (pre-merge head e890295)
plugin-auth: full suite and typecheck (pre-merge head e890295, pin as first written)
After merging main (head 4f536ba): scoped re-run
Ablation A: the form param spelled otherwise (platform-objects source, rebuilt into dist)
ablation-replace.mjsrenamed{ name: 'tokenEndpoint', label: 'Token URL'to{ name: 'tokenUrl', label: 'Token URL'(anchor 1 to 0, blob aaf454730f32 to 3d63005b49ad), thenpnpm --filter @objectstack/platform-objects build, thenablation-dist-preflight.mjs @objectstack/platform-objects tokenUrl(marker present in 6 built files), then the pin file:Restore leg: rebuild,
ablation-dist-preflight.mjs @objectstack/platform-objects tokenUrl --absent(absent from all 66 built files; working tree clean against HEAD), pin fileTests 43 passed (43).Ablation B: the bridge pass-through removed (plugin-auth source)
ablation-replace.mjsreplacedif (value) oidcConfig[member] = value;with a no-op (anchor 1 to 0, blob dba20122f901 to f696afc0abe1):Derived gate families (dispatch-gates --commands at 4f536ba)
98 families derived at 4f536ba; each run with its exit captured before any pipe;
dispatch-gates --ranwith the exit codes:98 derived famil(ies) accounted for — 95 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3).pnpm --filter @objectstack/spec run check:skill-examples(spec declarations not built),pnpm check:dual-build-cjs-loads(workspace not fully built),pnpm check:type-check-debt(its closure build never got a turn on the shared verify lock).pnpm --filter @objectstack/spec run check:docs(refused:packages/spec/json-schema is older than packages/spec/src, a gitignored artifact), andpnpm check:docs-transcript-drift(4 rows, all in docs this PR does not touch, reading the validate rule count 65 from apackages/lintbuild taken before the merge of main brought feat(lint): advise a template default that reads like a variable path, and a notify node missing a required template variable #33321's two new rules; the docs say 67).OS_VERIFY_LOCK_SLOT=issue-33395-a1) never acquired it, held throughout by another session's dogfood run (holder pid 20551). They are CI's: Lint & Repo Gates and TypeScript Type Check run each on this PR.Generated by Claude Code