-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
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 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\UnauthorizedException
intoSymfony\Component\HttpKernel\Exception\AccessDeniedHttpException
if it is not caught in the controller.