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
Next Next commit
Update SimplePreAuthenticationListener.php
  • Loading branch information
ad3n committed Jul 22, 2014
commit 0e7f301014053903be41bd8aef670b7e44039c80
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function handle(GetResponseEvent $event)
}

try {
$token = $this->simpleAuthenticator->createToken($request, $this->providerKey);
$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