Commit c748ffa
committed
fix: throw error on auth fallback for non-root AS paths
Fixes #1716
When authorization server metadata discovery fails and the server URL has a non-root path, the fallback to /authorize, /token, and /register endpoints silently constructs wrong URLs (losing the path prefix). This fix throws a descriptive error instead of silently redirecting to nonexistent endpoints.
Affected locations:
- startAuthorization: /authorize fallback
- executeTokenRequest: /token fallback
- registerClient: /register fallback1 parent ccb78f2 commit c748ffa
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1203 | 1208 | | |
1204 | 1209 | | |
1205 | 1210 | | |
| |||
1283 | 1288 | | |
1284 | 1289 | | |
1285 | 1290 | | |
1286 | | - | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1287 | 1299 | | |
1288 | 1300 | | |
1289 | 1301 | | |
| |||
1530 | 1542 | | |
1531 | 1543 | | |
1532 | 1544 | | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1533 | 1551 | | |
1534 | 1552 | | |
1535 | 1553 | | |
| |||
0 commit comments