From ccd177ada6823c27a6408427f19c238fd701c39e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 6 Dec 2017 16:19:11 -0800 Subject: Store PHP sessions in the database --- app/Auth/ApiAccessTokenAuth.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/Auth/ApiAccessTokenAuth.php') 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; } -- cgit v1.2.3