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)]);
97
+
}
98
+
99
+
if (false !== $supports = $authenticator->supports($request)) {
100
+
$authenticators[$key] = $authenticator;
101
+
$lazy = $lazy && null === $supports;
102
+
} elseif (null !== $this->logger) {
103
+
$this->logger->debug('Authenticator does not support the request.', ['firewall_key' => $this->providerKey, 'authenticator' => \get_class($authenticator)]);
104
+
}
105
+
}
106
+
107
+
return [$authenticators, $lazy];
66
108
}
67
109
68
110
/**
@@ -71,6 +113,15 @@ public function __invoke(RequestEvent $requestEvent)
// recheck if the authenticator still supports the listener. support() is called
117
+
// eagerly (before token storage is initialized), whereas authenticate() is called
118
+
// lazily (after initialization). This is important for e.g. the AnonymousAuthenticator
119
+
// as its support is relying on the (initialized) token in the TokenStorage.
120
+
if (false === $authenticator->supports($event->getRequest())) {
121
+
$this->logger->debug('Skipping the "{authenticator}" authenticator as it did not support the request.', ['authenticator' => \get_class($authenticator)]);
0 commit comments