diff --git a/composer.json b/composer.json index 033439f..fb9a3d0 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } }, "require": { - "meta-tech/pws-auth" : "^2.1", + "meta-tech/pws-auth" : "@dev", "meta-tech/silex-controller-service" : "^1.0", "silex/silex": "^2.0", "gecko-packages/gecko-silex-config-service": "^2.0", diff --git a/src/MetaTech/Silex/Ws/Authentication.php b/src/MetaTech/Silex/Ws/Authentication.php index 53419a8..5abfd3d 100644 --- a/src/MetaTech/Silex/Ws/Authentication.php +++ b/src/MetaTech/Silex/Ws/Authentication.php @@ -133,7 +133,7 @@ class Authentication if (!empty($tokenResponse) || !empty($tokenResponse = $this->session->get('pwsauth.response'))) { $headers['Pws-Response'] = $tokenResponse; } - return $headers + return $headers; } /*! @@ -178,7 +178,7 @@ class Authentication $user = $this->session->get('user'); // done : lets controller takes hand if (!is_null($user) && $user->key == $token->getIdent()) { - $tokenResponse = $this->authenticator->generateResponseHeader($token, $user->login) + $tokenResponse = $this->authenticator->generateResponseHeader($token, $user->login); $this->session->set('pwsauth.response', $tokenResponse); return; }