Skip to content

Commit

Permalink
Merge pull request #3 from litpuvn/master
Browse files Browse the repository at this point in the history
Set authenticted token in security context.
  • Loading branch information
gfreeau committed Oct 29, 2014
2 parents ec2c607 + 20dc404 commit b80befb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Security/Firewall/GetJWTListener.php
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 b80befb

Please sign in to comment.