<?php
+
namespace Shaarli\Api;
use malkusch\lock\mutex\FlockMutex;
*/
protected function checkToken($request)
{
- if (!$request->hasHeader('Authorization')
+ if (
+ !$request->hasHeader('Authorization')
&& !isset($this->container->environment['REDIRECT_HTTP_AUTHORIZATION'])
) {
throw new ApiAuthorizationException('JWT token not provided');