Skip to content

Commit fbf00b4

Browse files
committed
Fix up authorization plugin support
1 parent 7ae8707 commit fbf00b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/RequestAuthorizationMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
6161
if (!$can) {
6262
$result = new Result($can, 'Can not ' . $this->getConfig('method') . ' request');
6363

64-
throw new ForbiddenException($result);
64+
throw new ForbiddenException($result, [$this->getConfig('method'), $request->getRequestTarget()]);
6565
}
6666
} catch (Exception $exception) {
6767
return $this->handleException($exception, $request, $this->getConfig('unauthorizedHandler'));

0 commit comments

Comments
 (0)