Commit 93a5ca2
committed
fix(client): preserve authorization server subpath in fallback URLs
When AS metadata discovery fails and the authorization server has a
non-root path (e.g., https://example.com/admin), the fallback URL
construction used `new URL('/authorize', serverUrl)` which silently
discards the path, producing https://example.com/authorize instead
of https://example.com/admin/authorize.
Adds buildFallbackUrl() helper that appends the endpoint to the
existing pathname. Applied to all three fallback locations:
/authorize, /token, and /register.
Closes #17161 parent babaa50 commit 93a5ca2
2 files changed
Lines changed: 75 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1008 | 1027 | | |
1009 | 1028 | | |
1010 | 1029 | | |
| |||
1372 | 1391 | | |
1373 | 1392 | | |
1374 | 1393 | | |
1375 | | - | |
| 1394 | + | |
1376 | 1395 | | |
1377 | 1396 | | |
1378 | 1397 | | |
| |||
1454 | 1473 | | |
1455 | 1474 | | |
1456 | 1475 | | |
1457 | | - | |
| 1476 | + | |
1458 | 1477 | | |
1459 | 1478 | | |
1460 | 1479 | | |
| |||
1701 | 1720 | | |
1702 | 1721 | | |
1703 | 1722 | | |
1704 | | - | |
| 1723 | + | |
1705 | 1724 | | |
1706 | 1725 | | |
1707 | 1726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1624 | 1677 | | |
1625 | 1678 | | |
1626 | 1679 | | |
| |||
0 commit comments