8000 Allowing for other authenticators to be checked · symfony/symfony@0501761 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0501761

Browse files
committed
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.
1 parent 293c8a1 commit 0501761

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ public function authenticate(TokenInterface $token)
9696
}
9797
}
9898

99-
throw new \LogicException(sprintf(
100-
'The correct GuardAuthenticator could not be found for unique key "%s". The listener and provider should be passed the same list of authenticators.',
101-
$token->getGuardProviderKey()
102-
));
99+
// no matching authenticator found - but there will be multiple GuardAuthenticationProvider
100+
// instances that will be checked if you have multiple firewalls.
103101
}
104102

105103
private function authenticateViaGuard(GuardAuthenticatorInterface $guardAuthenticator, PreAuthenticationGuardToken $token)

0 commit comments

Comments
 (0)
0