fix(search): authorize organization source credentials

Merged
IC
3mo ago
+305-39

Summary

  • Authorize organization Search source credentials through the existing organization credential policy instead of the workspace-only credential check.
  • Preserve the acting principal through creation, settings validation, and access-mode changes. Reject revoked organization credentials before provider access.

Type of Change

  • Bug fix

Testing

  • 152 focused tests passed, including repository binding through real organization authorization and rejection of non-admins, revoked credentials, wrong scope, workspace keys, and another user's OAuth account.
  • App and auth type-checks, lint, all 46 repository audits, and docs manifest checks passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)