Skip to content

Commit

Permalink
The auth storage should always check if the HTTP request is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 26, 2014
1 parent 7b74b7d commit b57259f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ private function getCurrentRequest()
{
$request = $this->application->getMvcEvent()->getRequest();

return $request instanceof Request ? $request : null;
if (! $request instanceof Request || ! $this->resourceServer->isRequestValid($request)) {
return null;
}

return $request;
}
}

0 comments on commit b57259f

Please sign in to comment.