diff options
author | Fabien Bourigault <fabien@vtech.fr> | 2017-01-02 16:09:26 +0100 |
---|---|---|
committer | Fabien Bourigault <bourigaultfabien@gmail.com> | 2017-01-02 16:57:45 +0100 |
commit | 27fdeef792e7237be2b16a2d164126276530b0ec (patch) | |
tree | 7536a20ceb7f56f72e417bd22d849c403b434f37 /Http | |
parent | 90bb3ea494b8f03fa44c3f1114f950898f7d9277 (diff) | |
download | symfony-security-27fdeef792e7237be2b16a2d164126276530b0ec.zip symfony-security-27fdeef792e7237be2b16a2d164126276530b0ec.tar.gz symfony-security-27fdeef792e7237be2b16a2d164126276530b0ec.tar.bz2 |
use authenticated token for json authentication
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/UsernamePasswordJsonAuthenticationListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php b/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php index bf3c621..dfbb4a4 100644 --- a/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php +++ b/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php @@ -101,8 +101,8 @@ class UsernamePasswordJsonAuthenticationListener implements ListenerInterface try { $token = new UsernamePasswordToken($username, $password, $this->providerKey); - $this->authenticationManager->authenticate($token); - $response = $this->onSuccess($request, $token); + $authenticatedToken = $this->authenticationManager->authenticate($token); + $response = $this->onSuccess($request, $authenticatedToken); } catch (AuthenticationException $e) { $response = $this->onFailure($request, $e); } |