The service-bus has two plugins to support authorization, the RouteGuard and the FinalizeGuard.
Both rely on a simple interface AuthorizationService.
Any thoughts about …
- … adding a
AuthorizationService adapter for Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
- … allowing to enable each guard for each message-bus per configuration
- … adding an (optional) event listener to convert
Prooph\ServiceBus\Plugin\Guard\UnauthorizedException into Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException if it is not caught in the controller.
The service-bus has two plugins to support authorization, the RouteGuard and the FinalizeGuard.
Both rely on a simple interface AuthorizationService.
Any thoughts about …
AuthorizationServiceadapter forSymfony\Component\Security\Core\Authorization\AuthorizationCheckerInterfaceProoph\ServiceBus\Plugin\Guard\UnauthorizedExceptionintoSymfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionif it is not caught in the controller.