summaryrefslogtreecommitdiffstats
path: root/Guard
diff options
context:
space:
mode:
authorRyan Weaver <ryan@thatsquality.com>2015-09-20 19:37:51 -0400
committerRyan Weaver <ryan@thatsquality.com>2015-09-20 19:37:51 -0400
commit07e6e6f92ff935635aa290666b8801e41bd434bc (patch)
tree9c014fdedf4f82eaa7f1c87c4549e4b3653696ab /Guard
parent5dc6b296d8925d87588865e759fcde67144098a6 (diff)
downloadsymfony-security-07e6e6f92ff935635aa290666b8801e41bd434bc.zip
symfony-security-07e6e6f92ff935635aa290666b8801e41bd434bc.tar.gz
symfony-security-07e6e6f92ff935635aa290666b8801e41bd434bc.tar.bz2
Allowing for other authenticators to be checked
If you have 2 firewalls, 2 GuardAuthenticationProviders are still created, so we need to be able to run through both of them.
Diffstat (limited to 'Guard')
-rw-r--r--Guard/Provider/GuardAuthenticationProvider.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/Guard/Provider/GuardAuthenticationProvider.php b/Guard/Provider/GuardAuthenticationProvider.php
index 7610f49..18e46cf 100644
--- a/Guard/Provider/GuardAuthenticationProvider.php
+++ b/Guard/Provider/GuardAuthenticationProvider.php
@@ -96,10 +96,8 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface
}
}
- throw new \LogicException(sprintf(
- 'The correct GuardAuthenticator could not be found for unique key "%s". The listener and provider should be passed the same list of authenticators.',
- $token->getGuardProviderKey()
- ));
+ // no matching authenticator found - but there will be multiple GuardAuthenticationProvider
+ // instances that will be checked if you have multiple firewalls.
}
private function authenticateViaGuard(GuardAuthenticatorInterface $guardAuthenticator, PreAuthenticationGuardToken $token)