You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->logger->debug('Checking support on authenticator.', ['firewall_key' => $this->providerKey, 'authenticator' => \get_class($authenticator)]);
93
+
$this->logger->debug('Checking support on authenticator.', ['firewall_key' => $this->firewallName, 'authenticator' => \get_class($authenticator)]);
94
94
}
95
95
96
96
if (false !== $supports = $authenticator->supports($request)) {
97
-
$authenticators[$key] = $authenticator;
97
+
$authenticators[] = $authenticator;
98
98
$lazy = $lazy && null === $supports;
99
99
} elseif (null !== $this->logger) {
100
-
$this->logger->debug('Authenticator does not support the request.', ['firewall_key' => $this->providerKey, 'authenticator' => \get_class($authenticator)]);
100
+
$this->logger->debug('Authenticator does not support the request.', ['firewall_key' => $this->firewallName, 'authenticator' => \get_class($authenticator)]);
// recheck if the authenticator still supports the listener. support() is called
129
+
foreach ($authenticatorsas$authenticator) {
130
+
// recheck if the authenticator still supports the listener. supports() is called
131
131
// eagerly (before token storage is initialized), whereas authenticate() is called
132
132
// lazily (after initialization). This is important for e.g. the AnonymousAuthenticator
133
133
// as its support is relying on the (initialized) token in the TokenStorage.
134
134
if (false === $authenticator->supports($request)) {
135
135
if (null !== $this->logger) {
136
136
$this->logger->debug('Skipping the "{authenticator}" authenticator as it did not support the request.', ['authenticator' => \get_class($authenticator)]);
137
137
}
138
+
138
139
continue;
139
140
}
140
141
@@ -165,7 +166,7 @@ private function executeAuthenticator(AuthenticatorInterface $authenticator, Req
thrownewLogicException(sprintf('Passport does not contain a user, overwrite "createAuthenticatedToken()" in "%s" to create a custom authenticated token.', \get_class($this)));
0 commit comments