Skip to content

Commit

Permalink
Fix up authorization plugin support
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Feb 25, 2025
1 parent 7ae8707 commit fbf00b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/RequestAuthorizationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
if (!$can) {
$result = new Result($can, 'Can not ' . $this->getConfig('method') . ' request');

throw new ForbiddenException($result);
throw new ForbiddenException($result, [$this->getConfig('method'), $request->getRequestTarget()]);
}
} catch (Exception $exception) {
return $this->handleException($exception, $request, $this->getConfig('unauthorizedHandler'));
Expand Down

0 comments on commit fbf00b4

Please sign in to comment.