Skip to content

Commit 96b9350

Browse files
feat(plugin-auth): the SSO Providers form sets, shows and clears the groups claim (#31755)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9VJA5ftzZj6fH6CEjFbETUE)_ Fixes #31666 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 改了什么:Setup → SSO Providers 表单现在能设置、查看和清除 SSO 组声明(groups claim),写入的位置与 `/sso/register` 完全相同:`mapping.extraFields.groups`。 - 为什么改:#31657 之后登录会按 IdP 组授予权限集,但组声明只能经 API 配置,管理员在界面上无法完成这一步。 - 风险与回滚:只新增两个仅限平台管理员的动作和两个注册参数;另修了一个现存缺陷(带 `oidcConfig` 的 update-provider 对密钥存于 `sys_secret` 的 OIDC 提供方一律返回 400)。回滚即 revert 本 PR。 - 先看:`packages/plugins/plugin-auth/src/register-sso-provider.ts` 末尾的两个桥,以及 `objectql-adapter.ts` 里 `update` 回显的密钥注入。 - 两分钟验证:`pnpm --filter @objectstack/plugin-auth exec vitest run src/sso-oidc-refusal-cause.test.ts src/register-sso-provider.test.ts src/admin-sso-bridge-gate.test.ts`。 - 需要你做的:无;两个新路由名由席位裁定(见下)。 ## What changes The Setup → SSO Providers form is metadata (`sys_sso_provider` actions with flat params that post to plugin-auth `/admin/sso/*` bridges), not console code, so the whole change sits in plugin-auth and platform-objects. Nothing under `ui/` or `packages/spec/**` changes. - **Register SSO Provider** gains **Map: Groups claim** and **Register SAML Provider** gains **Map: Groups attribute**. A non-blank value lands on `mapping.extraFields.groups`, exactly where `POST /api/v1/auth/sso/register` stores it. Blank stores no `extraFields`, as today. - **Show Groups Claim** posts to the new `POST /api/v1/auth/admin/sso/get-groups-claim`, which reads the stored row (system read, `oidc_config` / `saml_config` recovered) and answers only `{ providerId, groupsClaim }`. - **Edit Groups Claim** posts to the new `POST /api/v1/auth/admin/sso/set-groups-claim`. It merges the claim into the stored mapping (every other member kept verbatim), writes through the vendor's own `/sso/update-provider`, and reads the claim back. A blank claim deletes `extraFields.groups` (and an emptied `extraFields`), so the provider signs users in exactly like one saved without it. - Both routes run `gateAdmin` first, the platform-admin gate of the other `/admin/sso` bridges. A refused vendor update answers its status with the standard code for it and a fixed sentence; the vendor's body is never relayed, so no other config member (client secret, certificate, endpoints, other mapping members) can reach an answer. - **Fix:** `@better-auth/sso` reads the provider for `/sso/update-provider` through `lockSSOProviderRow`, which is an adapter `update`. That echo did not run the read half (`injectClientSecretOnRead`), so any update-provider carrying an `oidcConfig` for a provider whose secret is held in `sys_secret` was refused 400 "clientSecret is required". The adapter's `update` now carries the secret and the IdP-initiated column into its echo like every other provider read. - Two route-ledger rows, two platform-objects affordance rows, docs page `content/docs/permissions/sso.mdx` updated, translations for ten locales. - The #31657 grant logic (`sso-group-projection.ts`) is untouched. New public route names (`/admin/sso/get-groups-claim`, `/admin/sso/set-groups-claim`) and action names (`show_sso_groups_claim`, `edit_sso_groups_claim`) follow the `/admin/sso/*` and `*_sso_*` house spelling; they are the seat's call. No new error code: 400 VALIDATION_ERROR / INVALID_REQUEST, 404 RESOURCE_NOT_FOUND, 401/403 from the existing gate. ## Why Since #31657 an SSO sign-in grants the permission sets mapped to the provider's IdP groups, read from `mapping.extraFields.groups`. Only the vendor register API could set that member (documented by #31664); an administrator working in Setup had no way to configure it. ## Verification Clause-② measured: on base `POST /api/v1/auth/admin/sso/set-groups-claim` and `get-groups-claim` are not mounted and the register forms carry no groups param; on head both routes answer a platform admin 200 and the register forms accept the new param. A widening only: no request accepted on main is now refused. Tests (all import `src`): - `sso-oidc-refusal-cause.test.ts`, new describe: a form save with a claim stores the register door's mapping and the next sign-in grants the mapped set (the #31657 pin shape). CONTROL: a blank claim writes nothing and grants nothing. CONTROL: Show on a register-door row answers `groups`, then a clear removes it. Round trip on a rich mapping (register-door row and a row this action changed): every other member kept verbatim. - `register-sso-provider.test.ts`: both register forms store the claim where the register door does (compared to a direct `/sso/register` row), CONTROL without it; the bridges' merge, clear, 404 and 400; a no-leak pin (client secret, certificate, client id, IdP URL, other mapping members never appear in any answer, including a vendor refusal carrying them; data keys are exactly `providerId` and `groupsClaim`). - `admin-sso-bridge-gate.test.ts`: for both routes, anonymous 401 and member / org-admin / position-named-admin 403 with neither the store read nor the vendor called; platform admin 200. - `sso-client-secret-at-rest.test.ts` ③b: an update-provider carrying only `oidcConfig.mapping` is accepted and the secret still reads back. Ablations (each restored, `git diff HEAD` empty afterwards): - Gate removed from set-groups-claim → 4 gate tests red (`expected 200 to be 401` / `403`). - Vendor refusal body relayed → the no-leak test red. - Mapping added to the show answer → 2 tests red (data had 3 keys, expected 2). - Echo injection removed from the adapter `update` → ③b and the round trip red (`clientSecret is required …`, 400). Runs: plugin-auth full suite 4431 passed, 10 skipped, 1 red (the route-ledger pin, which hand-lists the mounts); that file re-run green (10/10) after the pin named the two routes; platform-objects 120 files / 1933 tests green; typecheck green for both packages; lint (`eslint --no-inline-config`) clean on both packages; `check:i18n`, `check:i18n-coverage` and `check:auth-mount-ledger` OK; every `dispatch-gates --commands` command run and reconciled with `--ran`. Dogfood, run locally under the verify lock after the sweep fix: the whole `@objectstack/dogfood` package 440 files passed, 3 skipped; 3653 tests passed, 41 skipped; 0 failed. The five admin suites together 5/5 files, 34/34 tests. Control: without the new entries the non-admin sweep is red at `:618` with the queue's signature. Forced test edits (existing tests changed because the surface grew): - `sso-oidc-refusal-cause.test.ts`: `bootGroupEngine` now registers the auth object extensions and `sys_secret` and sets a fake crypto provider, so the harness holds a client secret the way production does. - `platform-objects.test.ts`: two rows in the action table (`show_sso_groups_claim`, `edit_sso_groups_claim`). - `platform-admin-affordance-standing.test.ts`: the same two actions on the floor list. - `auth-route-ledger.conformance.test.ts`: the hand-written objectstack-mount pin names the two new routes. - `packages/qa/dogfood/test/admin-platform-admin-standing.dogfood.test.ts`: the two routes join `ADMITTED` (ADR-0068 gate first) with probe bodies; the admin reaches the handler and gets 404 for the unknown probe provider, nothing moves. - `packages/qa/dogfood/test/admin-route-nonadmin-refusal.dogfood.test.ts`: the two routes join the `objectstack-gate` bucket with the same probe bodies (anonymous 401, member 403; admin measured 404 RESOURCE_NOT_FOUND). Both dogfood sweeps derive the served `/admin/` route set and refuse an unclassified mount; PR CI does not run the dogfood shards, so the merge queue caught them (run 42562448270, Dogfood 3/3; then Dogfood 1/3). Census of `packages/qa/dogfood/test`: only these two files derive the `/admin/` set. `admin-credential-lifecycle`, `admin-identity-audit-trail` and `admin-ledger-decision-metadata` name fixed routes and need no registration. Out of scope, noted: ADR-0011's "Not assessed" list could name the two new actions (governed surface, left alone); the cloud auth proxy must mount the two new routes to serve them there. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (The `## 维护者速读` section is Chinese by the dispatch order.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmQznRNHwfSHVJJUCj2)_ <!-- signed: domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
1 parent cc16008 commit 96b9350

37 files changed

Lines changed: 1344 additions & 13 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
'@objectstack/platform-objects': patch
4+
---
5+
6+
Clause-②: yes (widening)
7+
Metadata-protocol: none
8+
9+
The Setup → SSO Providers forms now set the groups claim an SSO sign-in grants permission sets from. It is stored where `POST /api/v1/auth/sso/register` stores it, the provider's `mapping.extraFields.groups`, and nowhere else.
10+
11+
- **Register SSO Provider** takes **Map: Groups claim** and **Register SAML Provider** takes **Map: Groups attribute**. Left blank, the provider maps no groups, as before.
12+
- **Show Groups Claim** (`POST /api/v1/auth/admin/sso/get-groups-claim`) shows a provider's claim, including one the register door wrote.
13+
- **Edit Groups Claim** (`POST /api/v1/auth/admin/sso/set-groups-claim`) sets it, or removes it when blank. It writes through `/sso/update-provider` and keeps every other mapping member as stored.
14+
15+
Both new routes run the platform-admin gate of the other `/admin/sso` bridges and answer only `{ providerId, groupsClaim }`.
16+
17+
Fixed: `POST /api/v1/auth/sso/update-provider` with an `oidcConfig` was refused 400 "clientSecret is required" for any OIDC provider whose client secret is held in `sys_secret`. The vendor reads the provider through an adapter update, and that read now carries the client secret like every other provider read.

‎content/docs/permissions/sso.mdx‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,21 @@ one mapping model, two sources.
438438
`groups`: `mapping.extraFields.groups` names the OIDC claim or the SAML attribute
439439
that carries the user's groups, for example `extraFields: { groups: 'groups' }`
440440
in `oidcConfig.mapping` (or `samlConfig.mapping`) when the provider is registered
441-
through `POST /api/v1/auth/sso/register`. The **Setup → SSO Providers** form does
442-
not set it. The value may be one string or a list of strings. A provider whose
443-
mapping fills no `groups` signs users in as before.
441+
through `POST /api/v1/auth/sso/register`. The claim's value may be one string or
442+
a list of strings. A provider whose mapping fills no `groups` signs users in as
443+
before.
444+
445+
In **Setup → SSO Providers**, a platform administrator sets the same member
446+
without the API:
447+
448+
- **Register SSO Provider** and **Register SAML Provider** take it as
449+
**Map: Groups claim** (OIDC) or **Map: Groups attribute** (SAML). Leave it blank
450+
to map no groups.
451+
- **Show Groups Claim** on a provider shows the claim it reads now, whichever way
452+
it was set.
453+
- **Edit Groups Claim** changes it, and a blank value removes it. Every other
454+
member of the provider's mapping is kept as stored. A provider without a
455+
groups claim signs users in as one registered without it.
444456

445457
**Saving a mapping.** A platform administrator saves one mapping per group and
446458
permission set through `POST /api/v1/auth/admin/scim/set-group-mapping`, naming

‎packages/platform-objects/src/apps/translations/ar.objects.generated.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,11 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
21352135
label: "التعيين: مطالبة الاسم",
21362136
helpText: "اختياري. المطالبة المعيَّنة إلى اسم العرض. القيمة الافتراضية \"name\".",
21372137
placeholder: "name"
2138+
},
2139+
mapGroups: {
2140+
label: "التعيين: مطالبة المجموعات",
2141+
helpText: "اختياري. المطالبة التي تحمل مجموعات المستخدم، مثل \"groups\". يمنح كل تسجيل دخول مجموعات الأذونات المعيَّنة لتلك المجموعات. اتركه فارغًا لعدم تعيين أي مجموعات.",
2142+
placeholder: "groups"
21382143
}
21392144
}
21402145
},
@@ -2165,6 +2170,11 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
21652170
label: "تنسيق NameID",
21662171
helpText: "اختياري. تنسيق NameID المطلوب في SAML. القيمة الافتراضية هي التنسيق المُهيَّأ لدى مزوّد الهوية.",
21672172
placeholder: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
2173+
},
2174+
mapGroups: {
2175+
label: "التعيين: سمة المجموعات",
2176+
helpText: "اختياري. سمة التأكيد التي تحمل مجموعات المستخدم. يمنح كل تسجيل دخول مجموعات الأذونات المعيَّنة لتلك المجموعات. اتركه فارغًا لعدم تعيين أي مجموعات.",
2177+
placeholder: "groups"
21682178
}
21692179
}
21702180
},
@@ -2193,6 +2203,35 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
21932203
edit_sso_sign_in_options: {
21942204
label: "تعديل خيارات تسجيل الدخول",
21952205
successMessage: "تم حفظ خيارات تسجيل الدخول"
2206+
},
2207+
show_sso_groups_claim: {
2208+
label: "عرض مطالبة المجموعات",
2209+
resultDialog: {
2210+
title: "مطالبة المجموعات",
2211+
description: "مطالبة OIDC أو سمة SAML التي يقرأ منها هذا الموفّر مجموعات المستخدم عند كل تسجيل دخول. القيمة الفارغة تعني أن الموفّر لا يعيّن أي مجموعات. غيّرها عبر \"تعديل مطالبة المجموعات\".",
2212+
acknowledge: "تم",
2213+
fields: {
2214+
groupsClaim: "مطالبة المجموعات"
2215+
}
2216+
}
2217+
},
2218+
edit_sso_groups_claim: {
2219+
label: "تعديل مطالبة المجموعات",
2220+
params: {
2221+
groupsClaim: {
2222+
label: "مطالبة المجموعات",
2223+
helpText: "مطالبة OIDC أو سمة SAML التي تحمل مجموعات المستخدم. يمنح كل تسجيل دخول مجموعات الأذونات المعيَّنة لتلك المجموعات. اتركه فارغًا لإزالتها: عندها لا يعيّن الموفّر أي مجموعات.",
2224+
placeholder: "groups"
2225+
}
2226+
},
2227+
resultDialog: {
2228+
title: "تم حفظ مطالبة المجموعات",
2229+
description: "مطالبة المجموعات التي يقرأها هذا الموفّر الآن عند كل تسجيل دخول. القيمة الفارغة تعني عدم تعيين أي مجموعات.",
2230+
acknowledge: "تم",
2231+
fields: {
2232+
groupsClaim: "مطالبة المجموعات"
2233+
}
2234+
}
21962235
}
21972236
}
21982237
},

‎packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
3131
"objects.sys_oauth_application.fields.jwks_uri.label": "2a4339df734ab269",
3232
"objects.sys_platform_setting_audit.fields.source.options.api": "4baeeff968e192d1",
3333
"objects.sys_setting_audit.fields.source.options.api": "4baeeff968e192d1",
34+
"objects.sys_sso_provider._actions.edit_sso_groups_claim.params.groupsClaim.placeholder": "833cddda1a6e25f9",
3435
"objects.sys_sso_provider._actions.register_saml_provider.params.identifierFormat.placeholder": "5945ff9a6b644855",
36+
"objects.sys_sso_provider._actions.register_saml_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
3537
"objects.sys_sso_provider._actions.register_sso_provider.params.mapEmail.placeholder": "66309c7adf5c9436",
38+
"objects.sys_sso_provider._actions.register_sso_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
3639
"objects.sys_sso_provider._actions.register_sso_provider.params.mapName.placeholder": "a484c34aaf624bd6",
3740
"objects.sys_sso_provider._actions.register_sso_provider.params.scopes.placeholder": "58ac90cde28c764d",
3841
};

‎packages/platform-objects/src/apps/translations/de.objects.generated.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,11 @@ export const deObjects: NonNullable<TranslationData['objects']> = {
21352135
label: "Zuordnung: Namens-Claim",
21362136
helpText: "Optional. Claim, der dem Anzeigenamen zugeordnet wird. Standard ist „name“.",
21372137
placeholder: "name"
2138+
},
2139+
mapGroups: {
2140+
label: "Zuordnung: Gruppen-Claim",
2141+
helpText: "Optional. Claim, der die Gruppen des Benutzers enthält, z. B. „groups“. Jede Anmeldung vergibt die diesen Gruppen zugeordneten Berechtigungssätze. Leer lassen, um keine Gruppen zuzuordnen.",
2142+
placeholder: "groups"
21382143
}
21392144
}
21402145
},
@@ -2165,6 +2170,11 @@ export const deObjects: NonNullable<TranslationData['objects']> = {
21652170
label: "NameID-Format",
21662171
helpText: "Optional. Angefordertes SAML-NameID-Format. Standard ist das im IdP konfigurierte Format.",
21672172
placeholder: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
2173+
},
2174+
mapGroups: {
2175+
label: "Zuordnung: Gruppenattribut",
2176+
helpText: "Optional. Assertion-Attribut, das die Gruppen des Benutzers enthält. Jede Anmeldung vergibt die diesen Gruppen zugeordneten Berechtigungssätze. Leer lassen, um keine Gruppen zuzuordnen.",
2177+
placeholder: "groups"
21682178
}
21692179
}
21702180
},
@@ -2193,6 +2203,35 @@ export const deObjects: NonNullable<TranslationData['objects']> = {
21932203
edit_sso_sign_in_options: {
21942204
label: "Anmeldeoptionen bearbeiten",
21952205
successMessage: "Anmeldeoptionen gespeichert"
2206+
},
2207+
show_sso_groups_claim: {
2208+
label: "Gruppen-Claim anzeigen",
2209+
resultDialog: {
2210+
title: "Gruppen-Claim",
2211+
description: "Der OIDC-Claim oder das SAML-Attribut, aus dem dieser Anbieter bei jeder Anmeldung die Gruppen des Benutzers liest. Leer bedeutet, dass der Anbieter keine Gruppen zuordnet. Ändern Sie ihn mit „Gruppen-Claim bearbeiten“.",
2212+
acknowledge: "Fertig",
2213+
fields: {
2214+
groupsClaim: "Gruppen-Claim"
2215+
}
2216+
}
2217+
},
2218+
edit_sso_groups_claim: {
2219+
label: "Gruppen-Claim bearbeiten",
2220+
params: {
2221+
groupsClaim: {
2222+
label: "Gruppen-Claim",
2223+
helpText: "Der OIDC-Claim oder das SAML-Attribut, das die Gruppen des Benutzers enthält. Jede Anmeldung vergibt die diesen Gruppen zugeordneten Berechtigungssätze. Leer lassen, um ihn zu entfernen: Der Anbieter ordnet dann keine Gruppen zu.",
2224+
placeholder: "groups"
2225+
}
2226+
},
2227+
resultDialog: {
2228+
title: "Gruppen-Claim gespeichert",
2229+
description: "Der Gruppen-Claim, den dieser Anbieter jetzt bei jeder Anmeldung liest. Leer bedeutet, dass keine Gruppen zugeordnet werden.",
2230+
acknowledge: "Fertig",
2231+
fields: {
2232+
groupsClaim: "Gruppen-Claim"
2233+
}
2234+
}
21962235
}
21972236
}
21982237
},

‎packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
163163
"objects.sys_setting_audit.fields.source.options.import": "05c80d3a61ec3290",
164164
"objects.sys_setting_audit.fields.source.options.migration": "477a479630b97ad5",
165165
"objects.sys_setting_audit.fields.source.options.system": "d2c13a5a8c70ea8d",
166+
"objects.sys_sso_provider._actions.edit_sso_groups_claim.params.groupsClaim.placeholder": "833cddda1a6e25f9",
166167
"objects.sys_sso_provider._actions.register_saml_provider.params.identifierFormat.placeholder": "5945ff9a6b644855",
168+
"objects.sys_sso_provider._actions.register_saml_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
167169
"objects.sys_sso_provider._actions.register_sso_provider.params.mapEmail.placeholder": "66309c7adf5c9436",
170+
"objects.sys_sso_provider._actions.register_sso_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
168171
"objects.sys_sso_provider._actions.register_sso_provider.params.mapName.placeholder": "a484c34aaf624bd6",
169172
"objects.sys_sso_provider._actions.register_sso_provider.params.scopes.placeholder": "58ac90cde28c764d",
170173
"objects.sys_sso_provider._actions.request_domain_verification.resultDialog.fields.dnsRecordName": "b9fb79397650d504",

‎packages/platform-objects/src/apps/translations/en.objects.generated.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,11 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
21352135
label: "Map: Name claim",
21362136
helpText: "Optional. Claim mapped to display name. Defaults to \"name\".",
21372137
placeholder: "name"
2138+
},
2139+
mapGroups: {
2140+
label: "Map: Groups claim",
2141+
helpText: "Optional. Claim that carries the user’s groups, e.g. \"groups\". Each sign-in grants the permission sets mapped to those groups. Leave blank to map no groups.",
2142+
placeholder: "groups"
21382143
}
21392144
}
21402145
},
@@ -2165,6 +2170,11 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
21652170
label: "NameID Format",
21662171
helpText: "Optional. Requested SAML NameID format. Defaults to the IdP’s configured format.",
21672172
placeholder: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
2173+
},
2174+
mapGroups: {
2175+
label: "Map: Groups attribute",
2176+
helpText: "Optional. Assertion attribute that carries the user’s groups. Each sign-in grants the permission sets mapped to those groups. Leave blank to map no groups.",
2177+
placeholder: "groups"
21682178
}
21692179
}
21702180
},
@@ -2193,6 +2203,35 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
21932203
edit_sso_sign_in_options: {
21942204
label: "Edit Sign-In Options",
21952205
successMessage: "Sign-in options saved"
2206+
},
2207+
show_sso_groups_claim: {
2208+
label: "Show Groups Claim",
2209+
resultDialog: {
2210+
title: "Groups claim",
2211+
description: "The OIDC claim or SAML attribute this provider reads the user’s groups from at each sign-in. Empty means the provider maps no groups. Change it with “Edit Groups Claim”.",
2212+
acknowledge: "Done",
2213+
fields: {
2214+
groupsClaim: "Groups claim"
2215+
}
2216+
}
2217+
},
2218+
edit_sso_groups_claim: {
2219+
label: "Edit Groups Claim",
2220+
params: {
2221+
groupsClaim: {
2222+
label: "Groups claim",
2223+
helpText: "The OIDC claim or SAML attribute that carries the user’s groups. Each sign-in grants the permission sets mapped to those groups. Leave blank to remove it: the provider then maps no groups.",
2224+
placeholder: "groups"
2225+
}
2226+
},
2227+
resultDialog: {
2228+
title: "Groups claim saved",
2229+
description: "The groups claim this provider now reads at each sign-in. Empty means it maps no groups.",
2230+
acknowledge: "Done",
2231+
fields: {
2232+
groupsClaim: "Groups claim"
2233+
}
2234+
}
21962235
}
21972236
}
21982237
},

‎packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,11 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
21352135
label: "Mapeo: reclamo de nombre",
21362136
helpText: "Opcional. Reclamo asignado al nombre visible. Valor predeterminado: «name».",
21372137
placeholder: "name"
2138+
},
2139+
mapGroups: {
2140+
label: "Mapeo: reclamo de grupos",
2141+
helpText: "Opcional. Reclamo que contiene los grupos del usuario, p. ej. «groups». Cada inicio de sesión concede los conjuntos de permisos asignados a esos grupos. Déjelo en blanco para no asignar grupos.",
2142+
placeholder: "groups"
21382143
}
21392144
}
21402145
},
@@ -2165,6 +2170,11 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
21652170
label: "Formato de NameID",
21662171
helpText: "Opcional. Formato de NameID SAML solicitado. Por defecto, el formato configurado en el IdP.",
21672172
placeholder: "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
2173+
},
2174+
mapGroups: {
2175+
label: "Mapeo: atributo de grupos",
2176+
helpText: "Opcional. Atributo de la aserción que contiene los grupos del usuario. Cada inicio de sesión concede los conjuntos de permisos asignados a esos grupos. Déjelo en blanco para no asignar grupos.",
2177+
placeholder: "groups"
21682178
}
21692179
}
21702180
},
@@ -2193,6 +2203,35 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
21932203
edit_sso_sign_in_options: {
21942204
label: "Editar opciones de inicio de sesión",
21952205
successMessage: "Opciones de inicio de sesión guardadas"
2206+
},
2207+
show_sso_groups_claim: {
2208+
label: "Mostrar reclamo de grupos",
2209+
resultDialog: {
2210+
title: "Reclamo de grupos",
2211+
description: "El reclamo OIDC o el atributo SAML del que este proveedor lee los grupos del usuario en cada inicio de sesión. Vacío significa que el proveedor no asigna grupos. Cámbielo con «Editar reclamo de grupos».",
2212+
acknowledge: "Hecho",
2213+
fields: {
2214+
groupsClaim: "Reclamo de grupos"
2215+
}
2216+
}
2217+
},
2218+
edit_sso_groups_claim: {
2219+
label: "Editar reclamo de grupos",
2220+
params: {
2221+
groupsClaim: {
2222+
label: "Reclamo de grupos",
2223+
helpText: "El reclamo OIDC o el atributo SAML que contiene los grupos del usuario. Cada inicio de sesión concede los conjuntos de permisos asignados a esos grupos. Déjelo en blanco para eliminarlo: el proveedor dejará de asignar grupos.",
2224+
placeholder: "groups"
2225+
}
2226+
},
2227+
resultDialog: {
2228+
title: "Reclamo de grupos guardado",
2229+
description: "El reclamo de grupos que este proveedor lee ahora en cada inicio de sesión. Vacío significa que no se asignan grupos.",
2230+
acknowledge: "Hecho",
2231+
fields: {
2232+
groupsClaim: "Reclamo de grupos"
2233+
}
2234+
}
21962235
}
21972236
}
21982237
},

‎packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ export const esESGeneratedSourceHashes: Readonly<Record<string, string>> = {
122122
"objects.sys_setting_audit.fields.id.label": "00b0385c9c152888",
123123
"objects.sys_setting_audit.fields.source.options.api": "4baeeff968e192d1",
124124
"objects.sys_setting_audit.fields.source.options.ui": "95caad102a5c97ba",
125+
"objects.sys_sso_provider._actions.edit_sso_groups_claim.params.groupsClaim.placeholder": "833cddda1a6e25f9",
125126
"objects.sys_sso_provider._actions.register_saml_provider.params.identifierFormat.placeholder": "5945ff9a6b644855",
127+
"objects.sys_sso_provider._actions.register_saml_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
126128
"objects.sys_sso_provider._actions.register_sso_provider.params.mapEmail.placeholder": "66309c7adf5c9436",
129+
"objects.sys_sso_provider._actions.register_sso_provider.params.mapGroups.placeholder": "833cddda1a6e25f9",
127130
"objects.sys_sso_provider._actions.register_sso_provider.params.mapName.placeholder": "a484c34aaf624bd6",
128131
"objects.sys_sso_provider._actions.register_sso_provider.params.scopes.placeholder": "58ac90cde28c764d",
129132
"objects.sys_sso_provider.fields.id.label": "00b0385c9c152888",

0 commit comments

Comments
 (0)