Store PHP sessions in the database
This commit is contained in:
committed by
Frédéric Guillot
parent
421531bd4f
commit
ccd177ada6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user