Commit b38df80
authored
Guide users to manual OAuth registration when automatic (DCR) is rejected (#1176)
* Show the DCR rejection reason as an inline card, not a toast
When transparent Dynamic Client Registration is rejected with an actionable
reason (e.g. a server that refuses our redirect URI), surface the message as an
inline error card on the bring-your-own-app recovery view instead of a transient
toast, so the reason stays visible while the user registers an app.
* Lead with manual entry when a server rejects automatic registration
After transparent DCR is rejected (e.g. a server that only approves loopback
redirect URIs), the recovery "Register an OAuth app" form still led with
"Register automatically", sending the user straight back into the path that just
failed. Pass the rejection reason into OAuthClientForm so it suppresses the auto
path, restates why, and leads with manual client id/secret entry plus the
callback URL to allow-list.
* Label the rejection-recovery CTA "Manually register an app"1 parent edc4411 commit b38df80
2 files changed
Lines changed: 51 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
754 | 758 | | |
755 | 759 | | |
756 | 760 | | |
| |||
817 | 821 | | |
818 | 822 | | |
819 | 823 | | |
| 824 | + | |
820 | 825 | | |
821 | 826 | | |
822 | 827 | | |
| |||
1004 | 1009 | | |
1005 | 1010 | | |
1006 | 1011 | | |
| 1012 | + | |
1007 | 1013 | | |
1008 | 1014 | | |
1009 | 1015 | | |
| |||
1267 | 1273 | | |
1268 | 1274 | | |
1269 | 1275 | | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
1274 | 1280 | | |
1275 | 1281 | | |
1276 | 1282 | | |
| |||
1342 | 1348 | | |
1343 | 1349 | | |
1344 | 1350 | | |
| 1351 | + | |
1345 | 1352 | | |
1346 | 1353 | | |
1347 | 1354 | | |
| |||
1511 | 1518 | | |
1512 | 1519 | | |
1513 | 1520 | | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1514 | 1537 | | |
1515 | 1538 | | |
1516 | 1539 | | |
| |||
1529 | 1552 | | |
1530 | 1553 | | |
1531 | 1554 | | |
1532 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1533 | 1558 | | |
1534 | 1559 | | |
1535 | 1560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
181 | 192 | | |
182 | 193 | | |
183 | 194 | | |
| |||
283 | 294 | | |
284 | 295 | | |
285 | 296 | | |
286 | | - | |
| 297 | + | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
291 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
292 | 310 | | |
293 | 311 | | |
294 | 312 | | |
| |||
305 | 323 | | |
306 | 324 | | |
307 | 325 | | |
308 | | - | |
| 326 | + | |
309 | 327 | | |
310 | 328 | | |
311 | 329 | | |
| |||
365 | 383 | | |
366 | 384 | | |
367 | 385 | | |
368 | | - | |
| 386 | + | |
369 | 387 | | |
370 | 388 | | |
371 | 389 | | |
| |||
0 commit comments