feat: allow existing query params in oidc redirect uri#1003
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughOIDC authorization success and callback error flows now parse redirect URIs with ChangesOIDC redirect handling
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/controller/oidc_controller.go`:
- Around line 349-360: The redirect-URI parse error branch must stop execution
and avoid reusing the invalid callback URL. In the `url.Parse` error handling
around `authorizeError`, add an immediate return and omit
`authorizeReq.RedirectURI` from the callback-related fields so `authorizeError`
uses its internal JSON error fallback instead of parsing the invalid URL again.
- Line 364: Update the state query construction in authorizeError to set the
"state" parameter only when authorizeReq.State is non-empty, preserving omission
of the parameter for empty state values while retaining it for populated values.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4f305144-862d-4537-bd42-92fa6eb79af9
📒 Files selected for processing (1)
internal/controller/oidc_controller.go
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Fixes #995
Summary by CodeRabbit