Repository navigation
Fix already used OAuth callback port handling to prevent "Invalid redirect URI" errors - #2121
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2121 +/- ##
==========================================
+ Coverage 48.71% 48.76% +0.05%
==========================================
Files 241 241
Lines 30594 30630 +36
==========================================
+ Hits 14903 14938 +35
+ Misses 14568 14562 -6
- Partials 1123 1130 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@claude could you review this with a security hat on |
|
Claude finished @ChrisJBurns's task —— View job Security ReviewI've completed a security-focused review of the OAuth callback port handling changes. Here are my findings: ✅ Positive Security Aspects
|
Problem
Users were experiencing "Invalid redirect URI" errors during OAuth authentication when the specified callback port was unavailable. The issue occurred because:
Solution
This PR implements a comprehensive fix for OAuth callback port handling:
🔧 Core Changes
🧪 Testing
PerformOAuthFlowcovering all port scenariosFindOrUsePortStrictfunction and related tests📋 Behavior Summary
🎯 Benefits
thv proxyandthv runcommandsTesting
Breaking Changes
None. This is a bug fix that improves existing behavior without changing APIs.
Related Issues
Fixes the "Invalid redirect URI" error reported by users during OAuth authentication flows.
fixes #2098