Incorrect Argument Type in User Authentication Constructor

Created on 6 June 2025, 3 days ago

Problem/Motivation

TypeError: Drupal\intercept_ils\Auth::__construct(): Argument #3 ($user_auth) must be of type Drupal\user\UserAuth, Drupal\user\UserAuthentication given, called in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\intercept_ils\Auth->__construct() (line 41 of modules/contrib/intercept/modules/intercept_ils/src/Auth.php).

Drupal\Component\DependencyInjection\Container->createService(Array, 'Drupal\user\UserAuthInterface') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('Drupal\user\UserAuthInterface') (Line: 92)
Drupal\user\Form\UserLoginForm::create(Object) (Line: 38)
Drupal\tfa\Form\TfaLoginForm::create(Object) (Line: 41)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('\Drupal\tfa\Form\TfaLoginForm') (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, '\Drupal\tfa\Form\TfaLoginForm') (Line: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 201)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 138)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 87)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Using Drupal 10.4

An error occurred when you tried to log in.

Proposed resolution

Use the \Drupal\user\UserAuthInterface interface instead of the concrete class name.

πŸ› Bug report
Status

Active

Version

2.0

Component

Intercept ILS

Created by

πŸ‡ΊπŸ‡ΈUnited States droath

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024