diff options
Diffstat (limited to 'server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php')
| -rwxr-xr-x | server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php b/server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php index 1a36cc0..61a07c9 100755 --- a/server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php +++ b/server/vendor/php-opencloud/common/src/Common/Auth/AuthHandler.php @@ -1,4 +1,4 @@ -<?php +<?php declare(strict_types=1); namespace OpenCloud\Common\Auth; @@ -14,10 +14,13 @@ use Psr\Http\Message\RequestInterface; */ class AuthHandler { + /** @var callable */ private $nextHandler; + /** @var callable */ private $tokenGenerator; + /** @var Token */ private $token; /** @@ -66,7 +69,7 @@ class AuthHandler * * @return bool */ - private function shouldIgnore(RequestInterface $request) + private function shouldIgnore(RequestInterface $request): bool { return strpos((string) $request->getUri(), 'tokens') !== false && $request->getMethod() == 'POST'; } |
