Skip to content

Expect an overlapping SSO save to be rejected - #420

Merged
tnkuehne merged 1 commit into
mainfrom
test/overlapping-sso-saves
Nov 26, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
test/overlapping-sso-saves

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

#417 runs the SSO saves of one organization one at a time and rejects a save that overlaps a running one with Another SSO change is still in progress. Try again shortly. shared-sso-registration.integration.test.ts still expected the overlapping save to finish after the first one, so it fails on main.

Changes

  • keeps the native provider and app claims together when settings saves overlap becomes rejects an overlapping settings save and keeps the running save's provider and app claims together. The second save, started while the first waits between the native provider and the remaining settings write, is now expected to fail with the conflict message. The saved provider and the published app claims both carry the first save's values.
  • The first save keeps the OIDC claim type and the rejected one switches to Entra, so the final state is checked against an issuer that does not need to be tenant-specific.

Testing

  • pnpm check
  • tests/shared-sso-registration.integration.test.ts

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Updates the overlapping SSO save test to match the existing rejection behavior.

  • The SSO overlap test now expects the second save to be rejected.

Reviews (1) · Last reviewed commit: "Expect an overlapping SSO save to be rej..." · Reviewed by Greptile

SSO saves of one organization now run one at a time, so the save that
overlaps a running one fails instead of finishing after it. The test now
expects that rejection and checks that the running save keeps the native
provider and the app claims together.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 30311a5 Nov 26 2026, 10:33 AM

@tnkuehne
tnkuehne merged commit d45733e into main Nov 26, 2026
18 checks passed
@tnkuehne
tnkuehne deleted the test/overlapping-sso-saves branch November 26, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant