fix return on API call and fix id in clear for user

This commit is contained in:
Nicolas Lœuillet
2015-02-09 22:40:20 +01:00
parent 2a94b1d1b7
commit d29bfaf139
2 changed files with 4 additions and 7 deletions

View File

@ -44,6 +44,8 @@ class WsseListener implements ListenerInterface
$authToken = $this->authenticationManager->authenticate($token);
$this->securityContext->setToken($authToken);
return;
} catch (AuthenticationException $failed) {
$failedMessage = 'WSSE Login failed for '.$token->getUsername().'. Why ? '.$failed->getMessage();
$this->logger->err($failedMessage);
@ -56,10 +58,5 @@ class WsseListener implements ListenerInterface
return;
}
// By default deny authorization
$response = new Response();
$response->setStatusCode(403);
$event->setResponse($response);
}
}