fix(auth): ensure case-insensitivity on reading remote auth headers#389
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🧰 Additional context used📓 Path-based instructions (1)booklore-api/src/**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-03-25T21:02:57.527ZApplied to files:
📚 Learning: 2026-03-25T19:09:09.638ZApplied to files:
🔇 Additional comments (2)
📝 WalkthroughWalkthroughUpdated the remote authentication endpoint in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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 |
There was a problem hiding this comment.
Pull request overview
This PR fixes Remote Auth header parsing by switching to a case-insensitive header lookup mechanism, addressing login failures when proxies normalize header casing (Fixes #388).
Changes:
- Replace
@RequestHeader Map<String, String>with SpringHttpHeadersto rely on case-insensitive header keys. - Remove manual
toLowerCase(Locale.ROOT)normalization when reading configured Remote Auth headers.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Ensures that Remote Auth headers read case-insensetive.
Linked Issue: Fixes #388
Summary by CodeRabbit