From b8f7532e5c7e8b8be3ab199fca3dadd0d22be4cd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Dec 2016 15:43:36 -0500 Subject: Add personal API access token --- app/Api/Middleware/AuthenticationMiddleware.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Api/Middleware/AuthenticationMiddleware.php') diff --git a/app/Api/Middleware/AuthenticationMiddleware.php b/app/Api/Middleware/AuthenticationMiddleware.php index 8e309593..c4fa874a 100644 --- a/app/Api/Middleware/AuthenticationMiddleware.php +++ b/app/Api/Middleware/AuthenticationMiddleware.php @@ -28,6 +28,7 @@ class AuthenticationMiddleware extends Base implements MiddlewareInterface public function execute($username, $password, $procedureName) { $this->dispatcher->dispatch('app.bootstrap'); + $this->sessionStorage->scope = 'API'; if ($this->isUserAuthenticated($username, $password)) { $this->userSession->initialize($this->userModel->getByUsername($username)); -- cgit v1.2.3