8000 [Security] [Firewall] Bug fixed in SimplePreAuthenticationListener when createToken() not return TokenInterface object by ad3n · Pull Request #11414 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] [Firewall] Bug fixed in SimplePreAuthenticationListener when createToken() not return TokenInterface object #11414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Prev Previous commit
Update SimplePreAuthenticationListener.php
  • Loading branch information
ad3n committed Jul 22, 2014
commit d2e22554a77b765a910daa560290d5921ee44ef8
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function handle(GetResponseEvent $event)
try {
$this->securityContext->setToken(null);
$token = $this->simpleAuthenticator->createToken($request, $this->providerKey);

if ($token instanceof TokenInterface) {
$token = $this->authenticationManager->authenticate($token);
$this->securityContext->setToken($token);
Expand Down
0