Skip to content

Commit b8d6e69

Browse files
Fabien Bourigaultfbourigault
authored andcommitted
use authenticated token for json authentication
1 parent f8fec37 commit b8d6e69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firewall/UsernamePasswordJsonAuthenticationListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public function handle(GetResponseEvent $event)
101101
try {
102102
$token = new UsernamePasswordToken($username, $password, $this->providerKey);
103103

104-
$this->authenticationManager->authenticate($token);
105-
$response = $this->onSuccess($request, $token);
104+
$authenticatedToken = $this->authenticationManager->authenticate($token);
105+
$response = $this->onSuccess($request, $authenticatedToken);
106106
} catch (AuthenticationException $e) {
107107
$response = $this->onFailure($request, $e);
108108
}

0 commit comments

Comments
 (0)