diff options
Diffstat (limited to 'app/Auth/ApiAccessTokenAuth.php')
-rw-r--r-- | app/Auth/ApiAccessTokenAuth.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Auth/ApiAccessTokenAuth.php b/app/Auth/ApiAccessTokenAuth.php index 12ab21a7..88e16866 100644 --- a/app/Auth/ApiAccessTokenAuth.php +++ b/app/Auth/ApiAccessTokenAuth.php @@ -58,8 +58,7 @@ class ApiAccessTokenAuth extends Base implements PasswordAuthenticationProviderI */ public function authenticate() { - if (! isset($this->sessionStorage->scope) || $this->sessionStorage->scope !== 'API') { - $this->logger->debug(__METHOD__.': Authentication provider skipped because invalid scope'); + if (session_get('scope') !== 'API') { return false; } |