Commit ea6686a
committed
fixup: Refactor LSPS5 webhook notification handling: return notification on success, remove event emission
- Change parse_webhook_notification to return the verified WebhookNotification directly, instead of emitting an event.
- Remove LSPS5ClientEvent::WebhookNotificationReceived and related event logic.
- Now, invalid signatures result in an error and notification data is not exposed to the user.
- Follows feedback to avoid requiring users to manually check a boolean for signature validity and prevents leaking invalid notifications.1 parent d693e3f commit ea6686a
2 files changed
+9
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | 534 | | |
536 | | - | |
537 | | - | |
| 535 | + | |
| 536 | + | |
538 | 537 | | |
539 | 538 | | |
540 | 539 | | |
541 | 540 | | |
542 | | - | |
543 | | - | |
544 | | - | |
| 541 | + | |
545 | 542 | | |
546 | | - | |
| 543 | + | |
547 | 544 | | |
548 | | - | |
| 545 | + | |
549 | 546 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
| 547 | + | |
560 | 548 | | |
561 | 549 | | |
562 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 395 | | |
0 commit comments