8000 Merge branch '2.5' · symfony/security-http@5977995 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5977995

Browse files
committed
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
2 parents 8ab53db + 6de4c47 commit 5977995

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Firewall/SimplePreAuthenticationListener.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ public function handle(GetResponseEvent $event)
7676

7777
try {
7878
$token = $this->simpleAuthenticator->createToken($request, $this->providerKey);
79+
80+
// allow null to be returned to skip authentication
81+
if (null === $token) {
82+
return;
83+
}
84+
7985
$token = $this->authenticationManager->authenticate($token);
8086
$this->securityContext->setToken($token);
8187
} catch (AuthenticationException $e) {

0 commit comments

Comments
 (0)
0