Commit 7219d8c
committed
fix(client): preserve multi-value existing query params in auth URL
Address review feedback: dict(parse_qsl(...)) collapsed duplicate query
keys on the server-advertised authorization_endpoint to the last value.
Build the merged query from an ordered pair list instead, dropping only
keys the flow overrides, so existing multi-value params (e.g. scope=a&scope=b)
survive. Adds a regression test.1 parent 79259a6 commit 7219d8c
2 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3213 | 3213 | | |
3214 | 3214 | | |
3215 | 3215 | | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
3216 | 3227 | | |
3217 | 3228 | | |
3218 | 3229 | | |
| |||
0 commit comments