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.
This commit is contained in:
parent
293c8a1775
commit
0501761504
@ -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)
|
||||
|
Reference in New Issue
Block a user