Skip to content

bug(platform): saving OIDC SSO settings erases stored claim mappings #3669

Closed

Description

@yannickmonney

The form seeds attribute mapping fields only for SAML and its OIDC save payload omits claimMappings. The native upsert rebuilds the OIDC configuration, so omission removes the mappings from connection.yml.

Reproduced against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. Suggested severity: P2.

Reproduction

  1. Configure a Generic OIDC connection with valid claimMappings, for example email=profile.email, name=profile.full_name and groups=roles, through the supported config/admin API.
  2. Open Settings > Enterprise SSO and change only Display name.
  3. Save, then read the connection configuration again.

Expected: An unrelated settings edit preserves the existing OIDC claim mappings unless the administrator explicitly changes or clears them.

Actual: The form seeds attribute mapping fields only for SAML and its OIDC save payload omits claimMappings. The native upsert rebuilds the OIDC configuration, so omission removes the mappings from connection.yml.

Impact: Providers that use nonstandard email, name or group claims can stop identifying members correctly after an administrator merely renames the connection. The runtime’s Generic OIDC adapter consumes these saved mappings; no live sign-in was attempted.

Evidence

The native fixture initially stores all three OIDC mappings. The actual form’s display-name save sends no claimMappings; native readback has no mappings afterward. The client ID and existing secret remain unchanged, isolating the loss to omitted configuration.

Executed from /tmp/tale-audit-settings-44e0dcf2:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-100-findings/access-settings-proof/sso-batch1.vitest.config.ts --maxWorkers=1 --reporter=verbose --silent=false

Observed result: 5 passed (5), exit 0, in 4.17 seconds. Frozen observation/control proof: access-settings-proof/sso-batch1.test.tsx, config and sso-batch1.log.

Controls:

  • The same form preserves SAML email/name/groups attribute mappings on an unrelated rename.
  • Required-field validation returns 400 and a member-role write returns 403 without changing the native file.
  • The normal OIDC save preserves the stored client identity and secret.

Source

Scope and deduplication

Independent parent verification: reran all five native-router/component/file-store tests at the pinned SHA, all passed. The live all-state SSO mappings search only returned the earlier generic-provider feature, and the SSO corrupt-config search returned no matching issue. No real PostgreSQL or live identity-provider behavior is claimed by this fixture. Log: access-settings-proof/parent-sso-batch1.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions