Skip to content

Commit

Permalink
Set authenticted token in security context.
Browse files Browse the repository at this point in the history
  • Loading branch information
litpuvn committed Oct 29, 2014
1 parent ec2c607 commit 20dc404
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Security/Firewall/GetJWTListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function handle(GetResponseEvent $event)

try {
$token = $this->authenticationManager->authenticate(new UsernamePasswordToken($username, $password, $this->providerKey));
$this->securityContext->setToken($token);
$response = $this->onSuccess($event, $request, $token);

} catch (AuthenticationException $e) {
Expand Down

0 comments on commit 20dc404

Please sign in to comment.