Commit 5d60d17
committed
Preserve allowlisted alternate redirect URI when retrying OAuth flow
The retry redirect previously restarted the flow with only ?next=, so
logins started with an ALTERNATIVE_REDIRECT_URLS callback lost that
redirect URI. Carry the state payload's redirectUrl back as ?callback=
when it matches the allowlist (triggerOauthFlow re-validates it).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QWamsbC2xoGRoQazysMEVp1 parent 5a8b420 commit 5d60d17
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | | - | |
| 84 | + | |
74 | 85 | | |
75 | 86 | | |
76 | | - | |
| 87 | + | |
| 88 | + | |
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
| |||
0 commit comments