Repository navigation
fix: require redirect URI for clients with multiple redirects - #13
Conversation
WalkthroughThe App One seed now includes two callback URLs. The authorization endpoint reads Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/tests/integration/oauth.test.ts (1)
263-270: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winVerify the resolved redirect URI, not only the dashboard redirect.
This test checks only the intermediate dashboard redirect. It does not confirm that the authorization code carries
client2's sole registered redirect URL. Extend the test to fetch the approval details for the returnedpublicCodeIdand assertcode.redirectUriequals the client's registered URL.🤖 Prompt for 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. In `@test/tests/integration/oauth.test.ts` around lines 263 - 270, Extend the test around defaultAuthorizationRequest to fetch the approval details using the returned publicCodeId, then assert that code.redirectUri equals client2’s sole registered redirect URL. Keep the existing status and dashboard location assertions unchanged.Source: MCP tools
🤖 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.
Nitpick comments:
In `@test/tests/integration/oauth.test.ts`:
- Around line 263-270: Extend the test around defaultAuthorizationRequest to
fetch the approval details using the returned publicCodeId, then assert that
code.redirectUri equals client2’s sole registered redirect URL. Keep the
existing status and dashboard location assertions unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 02e45298-1200-4035-bc68-77332e1e41ac
📒 Files selected for processing (3)
seeds/test/index.tssrc/oauth/server.tstest/tests/integration/oauth.test.ts
Closes #9.