Skip to content
Snippets Groups Projects
Commit 1473b984 authored by Markus Guenther's avatar Markus Guenther
Browse files

[BUGFIX] Fix authentication with the authtoken

parent a385d3ad
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,12 @@ class AuthenticationService implements SingletonInterface {
*/
public function verifyRequest(array $requestHeaders) {
$authToken = $requestHeaders['authToken'];
// Some clients send the header data always in lowercase therefore we need to check this also
if (!array_key_exists('authToken', $requestHeaders)) {
$authToken = $requestHeaders['authtoken'];
}
return ($authToken !== '' && $this->verifyAuthToken($authToken));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment