Incompatibility with Basic Auth?

Created on 4 October 2024, 3 months ago

Problem/Motivation

When I have both Flood Control 3.0.0 and core 10.3's Basic Auth module installed the site fails to load and loads the following error:

Error: Call to undefined function Drupal\flood_control\flood_control_get_whitelist_ips() in Drupal\flood_control\FloodWhiteList->isIpWhitelisted() (line 90 of modules/contrib/flood_control/src/FloodWhiteList.php).
Drupal\flood_control\FloodWhiteList->isIpWhitelisted() (Line: 44)
Drupal\flood_control\FloodWhiteList->isAllowed() (Line: 92)
Drupal\basic_auth\Authentication\Provider\BasicAuth->authenticate() (Line: 343)
Drupal\shield\ShieldMiddleware->basicAuthRequestAuthenticate() (Line: 263)
Drupal\shield\ShieldMiddleware->bypass() (Line: 226)
Drupal\shield\ShieldMiddleware->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: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Enable Basic Auth and Flood Control.

Proposed resolution

Allow the Flood Control module to enabled while Basic Auth is also enabled.

Remaining tasks

Work out the root of the problem.
Fix the problem.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Production build 0.71.5 2024