Skip to content

[codex] prevent SSO provider update org reassignment - #198

Merged
salasebas merged 2 commits into
mainfrom
codex/ope-193-sso-provider-update
Jul 2, 2026
Merged

[codex] prevent SSO provider update org reassignment#198
salasebas merged 2 commits into
mainfrom
codex/ope-193-sso-provider-update

Conversation

@salasebas

Copy link
Copy Markdown
Owner

Summary

Fixes Linear issue OPE-193.

  • Remove organizationId from /sso/update-provider handling and OpenAPI schema.
  • Keep organization linking as registration-time behavior, matching Better Auth 1.6.9.
  • Update regression coverage so stray organizationId on update is ignored and organizationId alone returns NO_UPDATE_FIELDS.

Root Cause

RustAuth accepted organizationId on provider update, checked only membership in the submitted target organization, and persisted it. That let a personal provider become organization-scoped after only personal-provider ownership authorization.

Validation

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo nextest run -p rustauth-sso --all-features

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rustauth-docs-site Ignored Ignored Jul 2, 2026 8:22am

@salasebas
salasebas marked this pull request as ready for review July 2, 2026 08:16
@salasebas
salasebas merged commit 8f61b4d into main Jul 2, 2026
23 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant