Skip to content

fix(credentials): validate reconnect draft target - #10780

Open
fartmonarch wants to merge 1 commit into
simstudioai:stagingfrom
fartmonarch:fix/oauth-reconnect-target
Open

fartmonarch wants to merge 1 commit into
simstudioai:stagingfrom
fartmonarch:fix/oauth-reconnect-target

Conversation

@fartmonarch

Copy link
Copy Markdown

Summary

  • Reject reconnect drafts when the target credential is not OAuth or its provider differs from the requested provider.
  • Preserve the existing workspace and credential-admin checks before exposing validation errors.
  • Add regression coverage for both cases; both tests failed against the original implementation.

Refs #6716. This covers draft creation only; it does not claim to resolve the whole issue.

Testing

  • bun run --cwd apps/sim test lib/credentials/application/save-credential-draft.test.ts lib/credentials/application/launch-credential-connection.test.ts — 7 passed.
  • bun run type-check — 33/33 workspace tasks passed.
  • Biome check on the two changed files and git diff --check passed.
  • bun run test failed during the repository script tests on Windows (187 failed, 851 passed), so the remaining workspace suites did not run.
  • bun run check:audits failed multiple checks on Windows; the test-patterns, boundaries and source-conventions checks passed. Failures were not all compared against a clean baseline.
  • The pre-push hook was skipped after it could not find bunx; the generated-artifact gate was not run locally.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added and passing for the changed behavior
  • I have read and agree to the project's Contributor License Agreement.

@vercel

vercel Bot commented Dec 5, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 5, 2026 5:22am UTC

Request Review

This branch was previously deployed

1 inactive deployment
Preview — f57ff4df Deployed Dec 5, 2026 by vercel[bot]
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