Commit d57df06
committed
fix(openid-connect): validate callback state before restarting the flow
resty.openidc reports an unhandled request to the redirect_uri before it
validates the callback state, so match the state against the session's
in-flight flows here. A callback whose state was never issued no longer
restarts the flow, and the restart redirects to the original URL of the
flow the state belongs to rather than the session-level fallback.1 parent 74a0571 commit d57df06
2 files changed
Lines changed: 81 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
| 1325 | + | |
1325 | 1326 | | |
| 1327 | + | |
| 1328 | + | |
1326 | 1329 | | |
1327 | | - | |
| 1330 | + | |
1328 | 1331 | | |
1329 | | - | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1330 | 1348 | | |
1331 | 1349 | | |
1332 | 1350 | | |
1333 | 1351 | | |
| 1352 | + | |
1334 | 1353 | | |
1335 | 1354 | | |
1336 | 1355 | | |
1337 | | - | |
| 1356 | + | |
1338 | 1357 | | |
1339 | 1358 | | |
1340 | 1359 | | |
| |||
1349 | 1368 | | |
1350 | 1369 | | |
1351 | 1370 | | |
1352 | | - | |
| 1371 | + | |
1353 | 1372 | | |
1354 | 1373 | | |
1355 | 1374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | | - | |
| 319 | + | |
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
| |||
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
0 commit comments