service-bus-symfony-bundle
service-bus-symfony-bundle copied to clipboard
Guard support
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
AuthorizationServiceadapter forSymfony\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\UnauthorizedExceptionintoSymfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionif it is not caught in the controller.
@UFOMelkor
-
Adding an implementation of
AuthorizationServicein the bundle is a good idea, but I would do it for 1.1 release, not targeting upcoming 1.0 release, as this would only delay the final release (and it's not a strict requirement). -
about enabling guards per bus: the guards are plugins, so it should already be possible to add them simply
-
convert
Prooph\ServiceBus\Plugin\Guard\UnauthorizedExceptionintoSymfony\Component\HttpKernel\Exception\AccessDeniedHttpException- same as above, I would target this for 1.1 release.