fix: support protected resource enterprise credentials#4389
fix: support protected resource enterprise credentials#4389joeyorlando merged 15 commits intomainfrom
Conversation
|
Claude finished @joeyorlando's task in 7m 24s —— View job PR Review: fix: support protected resource enterprise credentialsPR #4389 · 44 files · +1440 / -197 SummaryThis PR adds a two-step enterprise credential exchange flow for OAuth Protected Resources (RFC 8414). When an agent's tool is configured with
The PR also introduces synthesized read-resource tools for resource-only MCP servers, a fallback chain from external IdP tokens to internal gateway tokens, and centralizes OAuth URN constants into FindingsCode Quality & ArchitectureWell-structured flow decomposition. The broker cleanly separates the two-step exchange ( Good use of shared constants. Moving Synthesized read-resource tools are a pragmatic addition. Catching JSON-RPC method-not-found errors from Potential Issues
Security
Test CoverageComprehensive test coverage across all new features:
Tests use real PGlite database and test fixtures per project conventions. DocumentationDocumentation updates in VerdictApprove with suggestions. The core architecture is sound and well-tested. The two items most worth addressing before merge are (1) the lack of origin validation on discovered authorization server URLs and (2) the missing metadata cache for protected resource discovery. The remaining items are minor and could be addressed in follow-ups. |
Summary