diff options
author | Bernhard Schussek <bschussek@gmail.com> | 2014-09-25 12:18:55 +0200 |
---|---|---|
committer | Bernhard Schussek <bschussek@gmail.com> | 2014-09-25 12:18:55 +0200 |
commit | 12f35c0d4ba88e52cdc48ba302d266024cbd17e1 (patch) | |
tree | 5d050bd5efc06b3e98003532ad29ee0b8543a1ea /Http | |
parent | 88ac10c21de12eece696dc8f8dde9bcb11da4b10 (diff) | |
parent | 5aa642a5ad4022f377c0eb43115d754dc92c4ae0 (diff) | |
download | symfony-security-12f35c0d4ba88e52cdc48ba302d266024cbd17e1.zip symfony-security-12f35c0d4ba88e52cdc48ba302d266024cbd17e1.tar.gz symfony-security-12f35c0d4ba88e52cdc48ba302d266024cbd17e1.tar.bz2 |
Merge branch '2.5'
* 2.5:
[Command] Set the process title as late as possible
[Form] Removed constructor argument from FormTypeHttpFoundationExtension for forward compatibility with 2.5
[Validator] Simplified testing of violations
remove obsolete test file
[FrameworkBundle] output failed matched path for clarification
bug #10242 Missing checkPreAuth from RememberMeAuthenticationProvider
[Validator] Fixed StaticMethodLoaderTest to actually test something
[Form] Fixed ValidatorTypeGuesser to guess properties without constraints not to be required
Use request format from request in twig ExceptionController
fixed bug
added the possibility to return null from SimplePreAuthenticationListener
[Form] Moved POST_MAX_SIZE validation from FormValidator to request handler
[Form] Add a form error if post_max_size has been reached.
Response::isNotModified returns true when If-Modified-Since is later than Last-Modified
[WebProfilerBundle] turbolinks compatibility
Conflicts:
src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/SimplePreAuthenticationListener.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Http/Firewall/SimplePreAuthenticationListener.php b/Http/Firewall/SimplePreAuthenticationListener.php index 258ca96..a6f4f77 100644 --- a/Http/Firewall/SimplePreAuthenticationListener.php +++ b/Http/Firewall/SimplePreAuthenticationListener.php @@ -76,6 +76,12 @@ class SimplePreAuthenticationListener implements ListenerInterface try { $token = $this->simpleAuthenticator->createToken($request, $this->providerKey); + + // allow null to be returned to skip authentication + if (null === $token) { + return; + } + $token = $this->authenticationManager->authenticate($token); $this->securityContext->setToken($token); } catch (AuthenticationException $e) { |