public function authenticate(ServerRequestInterface $request): ?UserInterface
    {
        foreach ($this->authenticationServices as $authenticationService) {
            $user = $authenticationService->authenticate($request);

            if ($user !== null) {
                return $user;
            }
        }

        return null;
    }