only in patch2: unchanged: --- a/basic_auth.module +++ b/basic_auth.module @@ -58,6 +58,21 @@ function basic_auth_permission() { } /** + * Implements hook_module_implements_alter(). + */ +function basic_auth_module_implements_alter(array &$implementations, $hook) { + // The "views" module has heaviest weight and forces own access callback to + // be set for menu item even if we have configured basic HTTP authentication + // for this item. This leads to loss of basic HTTP authentication. Let's make + // our implementation the most important one to prevent such things. + if ('menu_alter' === $hook) { + $group = $implementations['basic_auth']; + unset($implementations['basic_auth']); + $implementations['basic_auth'] = $group; + } +} + +/** * Perform basic HTTP authentication. * * @param string $username