Add personal API access token

This commit is contained in:
Frederic Guillot
2016-12-03 15:43:36 -05:00
parent 23d862aef8
commit b8f7532e5c
45 changed files with 526 additions and 15 deletions

View File

@@ -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));