When I enable all the lti_tool_provider modules, it shows up with:

The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "authentication_subscriber", path: "authentication_subscriber -> authentication -> authentication_collector -> authentication.lti_tool_provider.v1p3 -> lti_tool_provider.nonce.repository". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 239)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Drupal 10.3.3, PHP 8.2

Comments

fishfree created an issue. See original summary.

bob.hinrichs’s picture

Assigned: Unassigned » bob.hinrichs
Status: Active » Fixed

Fixed in 3.0.0. Root cause was the event dispatcher being injected into the LTI authentication providers, which forced the auth subscriber/collector to resolve during bootstrap and produced the 'authentication_subscriber' circular reference. In 3.0.x the
auth base class no longer constructor-injects @event_dispatcher — it resolves the dispatcher lazily via an eventDispatcher() accessor (see
src/Authentication/Provider/LTIToolProviderBase.php and its class docblock).

Note: 3.0.0 requires Drupal 10.3+/PHP 8.3+. Since this was reported on 10.3.3/PHP 8.2, using 3.0.0 directly needs PHP 8.3.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bob.hinrichs’s picture

Version: 2.0.5 » 3.0.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.