diff --git a/lib/classes/JsonApi/Middlewares/Auth/OAuth1Strategy.php b/lib/classes/JsonApi/Middlewares/Auth/OAuth1Strategy.php index 113ee09afe62ae429a4ccbe1fedeec75d550e325..20d22e2ef268af4e5616aae21e931bf683206bcc 100644 --- a/lib/classes/JsonApi/Middlewares/Auth/OAuth1Strategy.php +++ b/lib/classes/JsonApi/Middlewares/Auth/OAuth1Strategy.php @@ -57,16 +57,7 @@ class OAuth1Strategy implements Strategy $uri = (string) $this->request->getUri(); $method = $this->request->getMethod(); - if ('GET' === strtoupper(($method))) { - $parameters = (array) $this->request->getQueryParams(); - } elseif ('POST' === strtoupper(($method))) { - $parameters = (array) $this->request->getParsedBody(); - } else { - $parameters = []; - } - $parameters = $this->getParamsFromAuthorizationHeader($this->request, $parameters); - - $req = new \OAuthRequestVerifier($uri, $method, $parameters); + $req = new \OAuthRequestVerifier($uri, $method); // Check oauth timestamp and deny access if timestamp is outdated if ($req->getParam('oauth_timestamp') < strtotime('-6 hours')) {