diff --git a/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php index 69a53a5f82ac..258ca96d6d8c 100644 --- a/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php @@ -70,7 +70,7 @@ public function handle(GetResponseEvent $event) $this->logger->info(sprintf('Attempting simple pre-authorization %s', $this->providerKey)); } - if (null !== $this->context->getToken() && !$this->context->getToken() instanceof AnonymousToken) { + if (null !== $this->securityContext->getToken() && !$this->securityContext->getToken() instanceof AnonymousToken) { return; }