Skip to content
Snippets Groups Projects
Commit b1ce42e1 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Make sure we error out on lazy authenticators

They return null in supports() and get called when the token storage is
accessed.

This complicates the proxy implementation, so just error out for now.
parent a4039790
Branches
Tags
No related merge requests found
Pipeline #87076 passed
......@@ -32,7 +32,11 @@ class ProxyAuthenticator extends AbstractAuthenticator
private function getAuthenticator(Request $request): ?AuthenticatorInterface
{
foreach ($this->authenticators as $auth) {
if ($auth->supports($request)) {
$supports = $auth->supports($request);
if ($supports === null) {
throw new \RuntimeException('Lazy authenticators not supported atm');
}
if ($supports === true) {
return $auth;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment