Skip to content

Commit b70d9aa

Browse files
feat(plugin-auth,platform-objects): per-provider SSO sign-in options; invite_only refuses an uninvited SSO sign-in unless the provider allows JIT (#31448)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHR2BUbd1Pb1WoomJ6MRTiD)_ Refs #30967 Clause-②: yes (widening) Metadata-protocol: semantic ## 维护者速读 - 改了什么:每个 SSO 提供方(SAML / OIDC)多两个开关,默认关闭:允许 IdP 发起的登录(allowIdpInitiated)、允许即时开通账号(allowJit);`invite_only` 下没有账号也没有邀请的人通过 SSO 登录会被拒绝(SELF_REGISTRATION_CLOSED),除非该提供方打开 allowJit。 - 为什么改:按裁决 A(记录 6718355623)落地 #30967 第 1、2、4 项;只暴露 `@better-auth/sso` 已有的能力,不新增登录机制;第 3 项(组映射)不做。 - 风险与回滚:`invite_only` 是默认受众策略,已用 SSO 自动开户的部署,新用户首次登录会被拒;对应提供方打开 allowJit 即恢复旧行为。回滚即 revert 本 PR,两个新列可留在库里无害。 - 先看:`packages/plugins/plugin-auth/src/audience-posture.ts`(`decideAudienceAdmission` 的 provider 分支)、`packages/plugins/plugin-auth/src/sso-sign-in-options.ts`(SAML 请求作用域 getter 与 OIDC 读写两半)、`packages/plugins/plugin-auth/src/auth-manager.ts`(`runSsoCallback` 的 SAML 作用域)。 - 两分钟验证:`cd packages/plugins/plugin-auth && pnpm vitest run src/sso-saml-refusal-landing.test.ts src/sso-oidc-refusal-cause.test.ts`,预期全绿,其中关闭时 302 `unsolicited_response` / `state_not_found`,`invite_only` 未受邀 302 `SELF_REGISTRATION_CLOSED`。 - 需要你做的:无,席位落地。 ## What changes **Two options per SSO provider, both off by default** (ruling A, record 6718355623). - `sys_sso_provider` gains `allow_idp_initiated` and `allow_jit`: boolean, default false, `trackHistory`. They are declared to `@better-auth/sso` as `schema.ssoProvider.additionalFields`, so the vendor's own `/sso/register` and `/sso/update-provider` accept them, typed: a non-boolean answers 400 `VALIDATION_ERROR`. - No new writer population. The writers are the ones that write a provider today: the platform-admin registration gate on register, and the vendor's provider-access check on update-provider, with held callers refused as before. - Setup: the SSO Providers list shows both, and each row has an **Edit Sign-In Options** action (`edit_sso_sign_in_options`, POST `/api/v1/auth/sso/update-provider`). It declares no `ai` block, so it is human-only under ADR-0011. **IdP-initiated sign-in (items 1 and 2).** Only the vendor's own mechanism runs; nothing new is added. - **SAML.** The vendor reads one plugin-wide `saml.allowIdpInitiated` while it validates a Response (`validateInResponseTo`). plugin-auth now hands it an options object whose `allowIdpInitiated` is a getter. The getter answers the value `AuthManager.runSsoCallback` put in an `AsyncLocalStorage` scope for this ACS request: the provider row's column, read through a system-context reader before the vendor runs. With no scope (any other path) it answers false. - **OIDC.** The vendor reads `provider.oidcConfig.allowIdpInitiated` in `bounceIfIdpInitiated`, and its register and update schemas strip that member from a body. So the column is the only place it is authored: - on read, the objectql adapter writes the column's value into the OIDC blob it hands the vendor; - on write, it strips the member from the stored blob, so the update-provider merge cannot write a second copy back. - Off answers as today: SAML 302 `error=unsolicited_response`, OIDC 302 `error=state_not_found`, and nobody is signed in. **Unknown users under `invite_only` (item 4).** - `decideAudienceAdmission`'s provider branch now refuses an `@better-auth/sso` creation (source `sso-oidc` / `sso-saml`) under `invite_only` when the provider's `allowJit` is off. It refuses with the existing ledger code `SELF_REGISTRATION_CLOSED`, which the vendor rethrows to the redirect's `error=`. - These are still admitted: the bootstrap carve-out, a pending invitation, and a provider with `allowJit` on. - A source naming no provider reads every option OFF, and so does an unreadable row. - `email_domain`, `open`, an invalid posture, and enterprise `oidcProviders` (oauth) answer as before. - The changeset says plainly that this is a behaviour change for existing `invite_only` deployments, and it names the `allowJit` escape hatch. Docs: a new **Per-provider sign-in options** section in `content/docs/permissions/sso.mdx`. i18n: the new labels, help texts and action strings are translated in all six locale bundles. ## Tests All new pins sit in the existing harness files as top-level describes (shared-harness ruling 6583487846), plus one new unit file. - `sso-saml-refusal-landing.test.ts` (real samlify IdP): - IdP-initiated off: 302 `unsolicited_response`, no session. - On: the same Response signs the person in. - Another provider's toggle does not open this one. - CONTROL: SP-initiated sign-in. - JIT under `invite_only`: refused 302 `{ base: sign-in-failed, error: SELF_REGISTRATION_CLOSED }` and no user is created; `allowJit` admits. - CONTROLs: an invited user; the `open` posture. - `sso-oidc-refusal-cause.test.ts`: - Off: 302 `state_not_found`. - On: bounces to the IdP's authorize with a fresh state, and finishing the flow signs the person in. - A value smuggled into the stored blob is not read, and an adapter update strips it. - JIT refused, with `allowJit`, invited and `email_domain` legs, as for SAML. - `sso-register-platform-admin-gate.test.ts` (real SQL): - Default off. - The owner's update-provider turns each toggle on and off, and the store reads it back. - A non-boolean answers 400 `VALIDATION_ERROR`, and nothing is written. - A member who is not the provider's writer answers 403, and nothing is written. - `plugin-audit/audit-internal-field-omission.test.ts`: both declarations are boolean, `trackHistory` and default false. Flipping each toggle 0→1→0 writes two `sys_audit_log` update rows, each carrying both sides, and two `updated` activity rows naming the field. - `audience-posture.test.ts`: the decision matrix, with CONTROL rows for `email_domain`, `open`, invalid posture and `oidcProviders`. - `sso-sign-in-options.test.ts`: the declaration; the reader (the 1/0 carrier, fail-closed); source classification; OIDC read and write; the SAML getter's scope, including two concurrent scopes. - `objectql-adapter.test.ts`: the snake/camel read pin now expects the injected `allowIdpInitiated: false` in the OIDC blob. <details><summary>Red first, then each negative pin ablated</summary> - **Red first.** With the seven production files at the base commit (the new module left in place, unwired), 14 pins go red across the six files: 11 in plugin-auth and 3 in plugin-audit. The default-off and CONTROL pins stay green, as they should, because off was already the vendor's default. - **Ablations.** Each was run through `scripts/ablation-replace.mjs`, which mutates the file on disk, runs the tests and restores the file: | Ablation | Red | |---|---| | SAML getter forced `true` | SAML off pin, another-provider pin, scope unit pin | | OIDC read forced `true` | OIDC off pin, smuggled-value pin, read unit pin | | OIDC read line deleted | OIDC on pin, smuggled-value pin, read unit pin | | strip-on-write deleted | smuggled-value pin, write unit pin | | JIT gate forced `false` | SAML and OIDC refusal pins, two matrix pins | | `allow_jit` `trackHistory: false` | declaration pin | The ledger rows themselves do not depend on `trackHistory`: plugin-audit mirrors every engine write. The flag is pinned by the declaration pin. </details> ## Acceptance notes - **ADR-0011 not edited.** It is a governed surface. The new action has no `ai` block, so it is human-only, as `list_platform_admins` is. - **The env-side bridges do not forward the toggles.** `/admin/sso/register` and `register-saml` do not pass them on, so a provider registered through Setup starts with both off and is then edited with Edit Sign-In Options. The vendor's own register takes both members. - **Enterprise `oidcProviders` (genericOAuth) are untouched.** Their JIT stays admitted under every posture, as before. - **Invalid posture is unchanged.** An off-vocabulary posture admits a provider-class creation as before, and only a valid `invite_only` judges `allowJit`. A CONTROL row pins this. - **Item 3 (group mapping) is excluded**, per the order. - **Serial constraint with #30959.** Whichever of the two lands second merges `origin/main` once and reruns the plugin-auth and platform-objects suites. ## Verification Head `9c8e1977`. Every command below was captured with its exit code before any pipe. <details><summary>Suites, gates, lint, typecheck</summary> - `@objectstack/plugin-auth` full suite: 241 files, 4279 passed, 10 skipped, exit 0. - `@objectstack/plugin-audit` full suite: 78 files, 1220 passed, exit 0. - `@objectstack/platform-objects` full suite: 120 files, 1751 passed, exit 0. - `packages/runtime` `action-execution-destructive.test.ts`: 57 passed, exit 0. - `pnpm --filter` typecheck for plugin-auth, platform-objects and plugin-audit: exit 0. - ESLint (the root `pnpm lint` command) over the three packages: exit 0. - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 107 commands, and all 107 exit 0. - Three first answered 3 (prerequisite not met): a fixture commit was missing from the shallow clone, and two gates need built output. They exit 0 after fetching that commit and running a full workspace build. - `--ran` reconciles 107 derived, 107 run, 0 NOT-MEASURED, 0 UNRUN. - i18n: `check:i18n`, `check:i18n-coverage` and `check:i18n-stale-fill` exit 0, with the bundles regenerated by `check-i18n-bundles.mjs --write`. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5nXM5CEyYnbaY58Spo)_ <!-- signed: domain:server#6 · os-project-manager · session_01FEkQ5nXM5CEyYnbaY58Spo --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9431c45 commit b70d9aa

27 files changed

Lines changed: 1196 additions & 25 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/plugin-auth': minor
3+
'@objectstack/platform-objects': minor
4+
'@objectstack/spec': patch
5+
---
6+
7+
feat(plugin-auth,platform-objects): per-provider SSO sign-in options for IdP-initiated sign-in and just-in-time accounts, and `invite_only` now refuses an SSO sign-in by someone who was not invited
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: semantic
11+
12+
**Behaviour change for existing deployments.** Under the `invite_only` audience posture, which is the default, an enterprise SSO sign-in (OIDC or SAML, through `@better-auth/sso`) by a person who has no account and no pending invitation is now refused. It redirects to the error page with `error=SELF_REGISTRATION_CLOSED`, and no user is created. Before, such a sign-in created the account. To keep the old behaviour for a provider, turn on its new `allowJit` option: **Setup → SSO Providers → Edit Sign-In Options**, or `POST /api/v1/auth/sso/update-provider` with `{ providerId, allowJit: true }`. Unchanged: a person who already has an account, a person with a pending invitation, the first human of an empty deployment, every sign-in under the `email_domain` or `open` posture, and the social and `oidcProviders` sign-ins.
13+
14+
- **Two options on each SSO provider, both off by default.** `sys_sso_provider` gains `allow_idp_initiated` and `allow_jit` (boolean, default false, history tracked). They are declared to `@better-auth/sso` as provider `additionalFields`, so its own `/sso/register` and `/sso/update-provider` accept them, a non-boolean is refused 400 `VALIDATION_ERROR`, and the people who can write a provider today are the only ones who can change them. Every change writes a `sys_audit_log` row and a field-level activity line with the old and the new value.
15+
- **IdP-initiated sign-in (SAML and OIDC).** Off, a SAML Response with no `InResponseTo` is refused `error=unsolicited_response`, and an OIDC callback with a `code` and no `state` is refused `error=state_not_found`, as before. On, the vendor's own IdP-initiated handling runs for that provider only. For SAML, the vendor's plugin-wide `saml.allowIdpInitiated` now answers the provider's column for each ACS request. For OIDC, the column is carried into the configuration the vendor reads, and an `allowIdpInitiated` member stored in that configuration is ignored and removed on the next write.
16+
- **Setup.** The SSO Providers list shows both options, and each row has an **Edit Sign-In Options** action.

‎content/docs/permissions/sso.mdx‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,64 @@ configure on the IdP side:
368368
369369
---
370370

371+
## Per-provider sign-in options
372+
373+
Each registered SSO provider, OIDC or SAML, carries two switches. Both are
374+
**off** by default.
375+
376+
| Option | Column on `sys_sso_provider` | When on |
377+
|---|---|---|
378+
| `allowIdpInitiated` | `allow_idp_initiated` | The provider may start a sign-in from the IdP's own portal, with no request from this platform. |
379+
| `allowJit` | `allow_jit` | Under the `invite_only` audience posture, the provider may create an account for a person who has none and holds no invitation. |
380+
381+
**Changing them.** Use **Setup → SSO Providers → Edit Sign-In Options** on a
382+
provider row. It posts to `POST /api/v1/auth/sso/update-provider` with
383+
`{ providerId, allowIdpInitiated, allowJit }`, and `POST /api/v1/auth/sso/register`
384+
takes the same two members. The people who can change a provider today are the
385+
only ones who can change these options. A value that is not a boolean is refused
386+
**400 `VALIDATION_ERROR`**, and nothing is written. Both fields keep a history,
387+
so every change writes a row to the audit ledger (`sys_audit_log`) and a
388+
field-level line to the record's activity feed, naming the old and the new value.
389+
390+
### IdP-initiated sign-in
391+
392+
With the option off, a sign-in the IdP starts on its own is refused, and nobody
393+
is signed in:
394+
395+
- **SAML.** A Response with no `InResponseTo` redirects to the error page with
396+
`error=unsolicited_response`.
397+
- **OIDC.** A callback that carries a `code` and no `state` redirects with
398+
`error=state_not_found`.
399+
400+
With it on, `@better-auth/sso` accepts that sign-in, and the platform adds no
401+
mechanism of its own. A SAML Response with no `InResponseTo` is validated like
402+
any other and signs the user in. An OIDC callback with no `state` restarts the
403+
flow at the IdP's authorization endpoint with a fresh `state`, and the sign-in
404+
completes from there. A sign-in this platform starts is unchanged either way.
405+
406+
The option belongs to one provider: turning it on for one SAML provider does not
407+
accept unsolicited Responses for another. For OIDC, the column is the only
408+
place it is set. An `allowIdpInitiated` member written into the stored OIDC
409+
configuration is not read, and it is removed on the next write.
410+
411+
### Accounts for people who were not invited
412+
413+
Under the `invite_only` audience posture (the default, see
414+
[Who may sign up](/docs/deployment/self-hosting#who-may-sign-up--and-what-each-posture-tells-a-stranger)),
415+
an SSO sign-in by a person who has no account and no pending invitation is
416+
refused. It redirects to the error page with `error=SELF_REGISTRATION_CLOSED`,
417+
and no user is created. These sign-ins are unchanged:
418+
419+
- a person who already has an account;
420+
- a person with a pending invitation;
421+
- the first human of a deployment that has none yet;
422+
- every sign-in under the `email_domain` or `open` posture.
423+
424+
To let a provider create accounts for everyone its IdP authenticates, as it did
425+
before this rule, turn on `allowJit` for that provider.
426+
427+
---
428+
371429
## Verify configuration
372430

373431
Restart the server (`pnpm dev`), then:

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "تهيئة SAML",
20492049
help: "JSON: entryPoint، cert، identifierFormat، mapping (يديرها better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "السماح بتسجيل الدخول الذي يبدأ من مزوّد الهوية",
2053+
help: "قبول تسجيل دخول يبدأ من مزوّد الهوية (استجابة SAML غير مطلوبة، أو استدعاء OIDC دون state) بدلًا من هذا النظام. معطّل افتراضيًا: استجابة SAML التي يبدأها مزوّد الهوية غير مرتبطة بأي طلب أرسله هذا النظام. غيّره من خلال «تعديل خيارات تسجيل الدخول»."
2054+
},
2055+
allow_jit: {
2056+
label: "السماح بالتزويد الفوري للحسابات",
2057+
help: "في وضع الجمهور المقتصر على الدعوات، إنشاء حساب لشخص يسجّل الدخول عبر هذا المزوّد دون حساب أو دعوة. معطّل افتراضيًا: يُرفض هذا الشخص. الأوضاع الأخرى تنشئ الحسابات كما كانت. غيّره من خلال «تعديل خيارات تسجيل الدخول»."
2058+
},
20512059
user_id: {
20522060
label: "سجّله",
20532061
help: "المستخدم الذي سجّل هذا المزوّد"
@@ -2168,6 +2176,10 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "حذف مزوّد SSO",
21692177
description: "هل تريد حذف مزوّد SSO هذا؟ لن يتمكن مستخدمو نطاقه من تسجيل الدخول من خلاله بعد ذلك.",
21702178
successMessage: "تم حذف مزوّد SSO"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "تعديل خيارات تسجيل الدخول",
2182+
successMessage: "تم حفظ خيارات تسجيل الدخول"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "SAML Config",
20492049
help: "JSON: entryPoint, cert, identifierFormat, mapping (managed by better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "Allow IdP-Initiated Sign-In",
2053+
help: "Accept a sign-in that starts at the identity provider (an unsolicited SAML response, or an OIDC callback with no state) instead of at this system. Off by default: an IdP-initiated SAML response is not bound to any request this system made. Change it with “Edit Sign-In Options”."
2054+
},
2055+
allow_jit: {
2056+
label: "Allow Just-in-Time Provisioning",
2057+
help: "Under the invite-only audience posture, create an account for a person who signs in through this provider without an account or an invitation. Off by default: such a person is refused. Other postures provision as before. Change it with “Edit Sign-In Options”."
2058+
},
20512059
user_id: {
20522060
label: "Registered By",
20532061
help: "User who registered this provider"
@@ -2168,6 +2176,10 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "Delete SSO Provider",
21692177
description: "Delete this SSO provider? Users from its domain will no longer be able to sign in through it.",
21702178
successMessage: "SSO provider deleted"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "Edit Sign-In Options",
2182+
successMessage: "Sign-in options saved"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "Configuración SAML",
20492049
help: "JSON: entryPoint, cert, identifierFormat, mapeo (gestionado por better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "Permitir inicio de sesión iniciado por el IdP",
2053+
help: "Acepta un inicio de sesión que empieza en el proveedor de identidad (una respuesta SAML no solicitada o una devolución de llamada OIDC sin state) en lugar de en este sistema. Desactivado de forma predeterminada: una respuesta SAML iniciada por el IdP no está vinculada a ninguna solicitud hecha por este sistema. Cámbielo con «Editar opciones de inicio de sesión»."
2054+
},
2055+
allow_jit: {
2056+
label: "Permitir aprovisionamiento just-in-time",
2057+
help: "Con la política de audiencia solo por invitación, crea una cuenta para quien inicia sesión a través de este proveedor sin cuenta ni invitación. Desactivado de forma predeterminada: esa persona es rechazada. Las demás políticas aprovisionan como antes. Cámbielo con «Editar opciones de inicio de sesión»."
2058+
},
20512059
user_id: {
20522060
label: "Registrado por",
20532061
help: "Usuario que registró este proveedor"
@@ -2168,6 +2176,10 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "Eliminar proveedor SSO",
21692177
description: "¿Eliminar este proveedor SSO? Los usuarios de su dominio ya no podrán iniciar sesión a través de él.",
21702178
successMessage: "Proveedor SSO eliminado"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "Editar opciones de inicio de sesión",
2182+
successMessage: "Opciones de inicio de sesión guardadas"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const frObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "Configuration SAML",
20492049
help: "JSON : entryPoint, cert, identifierFormat, mappage (géré par better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "Autoriser la connexion initiée par l’IdP",
2053+
help: "Accepter une connexion qui commence chez le fournisseur d’identité (une réponse SAML non sollicitée, ou un rappel OIDC sans state) plutôt que dans ce système. Désactivé par défaut : une réponse SAML initiée par l’IdP n’est liée à aucune requête émise par ce système. Modifiez-le avec « Modifier les options de connexion »."
2054+
},
2055+
allow_jit: {
2056+
label: "Autoriser le provisionnement juste-à-temps",
2057+
help: "Avec la politique d’audience sur invitation uniquement, créer un compte pour une personne qui se connecte via ce fournisseur sans compte ni invitation. Désactivé par défaut : cette personne est refusée. Les autres politiques provisionnent comme avant. Modifiez-le avec « Modifier les options de connexion »."
2058+
},
20512059
user_id: {
20522060
label: "Enregistré par",
20532061
help: "Utilisateur qui a enregistré ce fournisseur"
@@ -2168,6 +2176,10 @@ export const frObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "Supprimer le fournisseur SSO",
21692177
description: "Supprimer ce fournisseur SSO ? Les utilisateurs de son domaine ne pourront plus se connecter par son intermédiaire.",
21702178
successMessage: "Fournisseur SSO supprimé"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "Modifier les options de connexion",
2182+
successMessage: "Options de connexion enregistrées"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "SAML 設定",
20492049
help: "JSON: entryPoint、cert、identifierFormat、マッピング(better-auth が管理)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "IdP 起点のサインインを許可",
2053+
help: "本システムではなく ID プロバイダーから始まるサインイン(要求していない SAML レスポンス、または state のない OIDC コールバック)を受け入れます。既定ではオフです。IdP 起点の SAML レスポンスは、本システムが送ったどの要求にも結び付いていません。「サインインオプションを編集」で変更します。"
2054+
},
2055+
allow_jit: {
2056+
label: "ジャストインタイムのプロビジョニングを許可",
2057+
help: "招待制のオーディエンス方針のもとで、アカウントも招待もないままこのプロバイダー経由でサインインした人のアカウントを作成します。既定ではオフで、そのような人は拒否されます。ほかの方針では従来どおりプロビジョニングされます。「サインインオプションを編集」で変更します。"
2058+
},
20512059
user_id: {
20522060
label: "登録者",
20532061
help: "このプロバイダーを登録したユーザー"
@@ -2168,6 +2176,10 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "SSO プロバイダーを削除",
21692177
description: "この SSO プロバイダーを削除しますか?そのドメインのユーザーは、これを通じてサインインできなくなります。",
21702178
successMessage: "SSO プロバイダーを削除しました"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "サインインオプションを編集",
2182+
successMessage: "サインインオプションを保存しました"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const ptBRObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "Configuração SAML",
20492049
help: "JSON: entryPoint, cert, identifierFormat, mapping (gerenciado pelo better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "Permitir login iniciado pelo IdP",
2053+
help: "Aceita um login que começa no provedor de identidade (uma resposta SAML não solicitada ou um callback OIDC sem state) em vez de neste sistema. Desativado por padrão: uma resposta SAML iniciada pelo IdP não está vinculada a nenhuma solicitação feita por este sistema. Altere em “Editar opções de login”."
2054+
},
2055+
allow_jit: {
2056+
label: "Permitir provisionamento just-in-time",
2057+
help: "Na política de público somente por convite, cria uma conta para quem faz login por este provedor sem conta nem convite. Desativado por padrão: essa pessoa é recusada. As demais políticas provisionam como antes. Altere em “Editar opções de login”."
2058+
},
20512059
user_id: {
20522060
label: "Registrado por",
20532061
help: "Usuário que registrou este provedor"
@@ -2168,6 +2176,10 @@ export const ptBRObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "Excluir provedor de SSO",
21692177
description: "Excluir este provedor de SSO? Os usuários do domínio dele não poderão mais entrar por meio dele.",
21702178
successMessage: "Provedor de SSO excluído"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "Editar opções de login",
2182+
successMessage: "Opções de login salvas"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const ruObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "Конфигурация SAML",
20492049
help: "JSON: entryPoint, cert, identifierFormat, mapping (управляется better-auth)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "Разрешить вход, инициированный поставщиком удостоверений",
2053+
help: "Принимать вход, который начинается у поставщика удостоверений (незапрошенный ответ SAML или обратный вызов OIDC без state), а не в этой системе. По умолчанию выключено: ответ SAML, инициированный поставщиком удостоверений, не связан ни с одним запросом этой системы. Изменяется через «Изменить параметры входа»."
2054+
},
2055+
allow_jit: {
2056+
label: "Разрешить создание учётных записей при первом входе (JIT)",
2057+
help: "При политике аудитории «только по приглашению» создавать учётную запись для человека, который входит через этого поставщика без учётной записи и без приглашения. По умолчанию выключено: такому человеку отказывается во входе. При других политиках учётные записи создаются как прежде. Изменяется через «Изменить параметры входа»."
2058+
},
20512059
user_id: {
20522060
label: "Кем зарегистрирован",
20532061
help: "Пользователь, зарегистрировавший этого поставщика"
@@ -2168,6 +2176,10 @@ export const ruObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "Удалить поставщика SSO",
21692177
description: "Удалить этого поставщика SSO? Пользователи из его домена больше не смогут входить через него.",
21702178
successMessage: "Поставщик SSO удалён"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "Изменить параметры входа",
2182+
successMessage: "Параметры входа сохранены"
21712183
}
21722184
}
21732185
},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,14 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
20482048
label: "SAML 配置",
20492049
help: "JSON:entryPoint、cert、identifierFormat、映射(由 better-auth 管理)"
20502050
},
2051+
allow_idp_initiated: {
2052+
label: "允许 IdP 发起的登录",
2053+
help: "接受从身份提供方发起的登录(未经请求的 SAML 响应,或不带 state 的 OIDC 回调),而不是从本系统发起的登录。默认关闭:IdP 发起的 SAML 响应不对应本系统发出的任何请求。请通过“编辑登录选项”修改。"
2054+
},
2055+
allow_jit: {
2056+
label: "允许即时开通账号",
2057+
help: "在仅限邀请的受众策略下,为通过此提供方登录、但既无账号也无邀请的人创建账号。默认关闭:此类人员会被拒绝。其他策略照旧开通账号。请通过“编辑登录选项”修改。"
2058+
},
20512059
user_id: {
20522060
label: "注册人",
20532061
help: "注册该提供方的用户"
@@ -2168,6 +2176,10 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
21682176
label: "删除 SSO 提供方",
21692177
description: "删除该 SSO 提供方吗?其域名下的用户将无法再通过它登录。",
21702178
successMessage: "SSO 提供方已删除"
2179+
},
2180+
edit_sso_sign_in_options: {
2181+
label: "编辑登录选项",
2182+
successMessage: "登录选项已保存"
21712183
}
21722184
}
21732185
},

0 commit comments

Comments
 (0)