Fix unresolved CUSTOM placeholder in My Account impersonation callback URL#8172
Fix unresolved CUSTOM placeholder in My Account impersonation callback URL#8172AfraHussaindeen wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn ChangesBase URL placeholder resolution
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
|
|
PR builder started |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #8172 +/- ##
============================================
+ Coverage 52.77% 52.80% +0.03%
+ Complexity 21216 21178 -38
============================================
Files 2197 2197
Lines 130819 130618 -201
Branches 19654 19623 -31
============================================
- Hits 69040 68977 -63
+ Misses 53364 53245 -119
+ Partials 8415 8396 -19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
PR builder completed |



Purpose
MyAccountForImpersonationMigratoradds the impersonation redirect URL to the My Account OAuth app's callback URL list using the<CUSTOM_PROTOCOL>://<CUSTOM_HOSTNAME>:<CUSTOM_PORT>placeholder. WhenConsole.Originis not configured, this placeholder was left unresolved at OAuth redirect_uri validation time, causing user impersonation via Console to fail.MyAccount.Originis not configured, the standard<PROTOCOL>://<HOSTNAME>:<PORT>placeholder in the My Account callback URL was resolved correctly, but the CUSTOM<CUSTOM_PROTOCOL>://<CUSTOM_HOSTNAME>:<CUSTOM_PORT>placeholder for the impersonation redirect URL was not — leaving it unresolved.resolveOriginUrlFromPlaceholders) to fall back to the server base URL whenConsole.Originis not configured, ensuring the CUSTOM placeholder in the impersonation callback URL is resolved correctly.@Deprecatedsingle-argument overload ofresolveOriginUrlFromPlaceholders.Related Issues