Skip to content
Snippets Groups Projects
Commit 31f25c66 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #1971

Merge request studip/studip!3048
parent 9955fe7d
No related branches found
No related tags found
No related merge requests found
...@@ -57,16 +57,7 @@ class OAuth1Strategy implements Strategy ...@@ -57,16 +57,7 @@ class OAuth1Strategy implements Strategy
$uri = (string) $this->request->getUri(); $uri = (string) $this->request->getUri();
$method = $this->request->getMethod(); $method = $this->request->getMethod();
if ('GET' === strtoupper(($method))) { $req = new \OAuthRequestVerifier($uri, $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);
// Check oauth timestamp and deny access if timestamp is outdated // Check oauth timestamp and deny access if timestamp is outdated
if ($req->getParam('oauth_timestamp') < strtotime('-6 hours')) { if ($req->getParam('oauth_timestamp') < strtotime('-6 hours')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment