basic auth control based on drupal code