You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Establish outbound ownership from the authorized organization for connected-account operations, and from the verified owned account for reconnect. Managed MCP OAuth discovery and dynamic registration can then use the configured organization route instead of failing with missing scope.
Preserve membership checks, provider ownership, blocked routes, error mapping, and the existing audit lifecycle. Reuse the standard outbound context helper without adding credentials or configuration fallbacks.
Type of Change
Bug fix
Testing
Real Postgres, Redis, SDK OAuth discovery/registration, and loopback HTTP regressions cover both Connect and Reconnect. Each failed before its fix; independently removing each scope guard reproduced its three routing failures while authorization denials remained intact.
42 integration tests across organization OAuth, shared MCP clients, and Search setup; 569 surrounding account, OAuth, and network regressions passed, including eight real TLS CONNECT gateway tests.
App type-check, lint, 54 audits, artifact generators, block registry, and docs manifest checks passed. Integration JSON reports record each test and duration. OAuth provider responses are local fixtures, not a live provider-account authorization.
Checklist
Code follows project style guidelines
Self-reviewed my changes
Tests added/updated and passing (new tests pass the test-audit authoring gate)
[High risk] Wraps OAuth flows with organization-scoped network context.
The PR appears safe to merge; no outstanding or new actionable findings were identified.
Summary
The PR scopes organization account connections and personal account reconnections to the authorized account owner before starting OAuth. The expanded integration test checks reconnect routing, blocked routes, and authorization denials. The previously raised gateway-test suggestion was withdrawn.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Checklist
test-auditauthoring gate)