Please add possibility to work with sites behind http auth password.

Comments

sam hermans’s picture

Yes,
I noticed this the last few weeks that a lot of people are adding sites protected by basic authentication. This has been added in the issue queue of the website and will be live soon.

kpa’s picture

You can do this in the apache conf setup for the site. We're using

<Directory /path/to/site>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    AuthUserFile /etc/apache2/htauth.pass
    AuthName "restricted"
    AuthType Basic
    require valid-user
    Order deny,allow
    Deny from all
    Allow from 91.212.186.35 #drupalstatus.org
    Satisfy any
</Directory>
sam hermans’s picture

Hmm .. maybe even a better idea.. that way we can keep the 'site configuration parameters' to a minimum..

FYI: The IP specified is correct, but the hostname of the service that fetches your site is 'status.drupalstatus.org'

I'm going to add your configuration example to the FAQ for now.

dmitrii’s picture

I'm tried .htaccess/server config solutions before support request creation. but it doesn't work for me.
probably it's maybe virtualmin specific problem

sam hermans’s picture

No worries, i'll add it tomorrow .. it was quite busy last few days so i had no time for this project.

I'll post here when it's ready for testing.

dmitrii’s picture

Thanks!
I'll test new feature with pleasure.

sam hermans’s picture

@dmitrii i have just updated the website, this should now show the HTTP code we recieve when trying to fetch your module list.

Can you confirm that you now see those codes ? My tests locally show that you should get the 401 (Unauthorized) response when using .htaccess require-valid-user

dmitrii’s picture

I'm confirm.
Our service recieved the following HTTP code: 401
The 401 (Unauthorized) response typically means that this site is protected by some kind of IP-firewall or authentication.

sam hermans’s picture

@dmitrii Okay, the functionality should be there .. can you give it a try and let me know what your results are ?

sam hermans’s picture

Assigned: Unassigned » sam hermans
Status: Active » Needs review
dmitrii’s picture

Sam, thanks.

Dashboard and Modules pages work now.
But https://www.drupalstatus.org/user/sites page crashed with "Whoops, looks like something went wrong." message.
Also site's page crached for protected sites (e.g. site id 10128). For non protected sites service is working.

sam hermans’s picture

Heh, for some reason the protected site you added does not report it's current core version .. As this is used on various pages to display the Drupal version, these pages crash.

Are you using an alternative distribution like drupalcommerce ?

dmitrii’s picture

Yes. The site starts with flight profile and later mixed with pantheon profile. I'll take a look inside your module for this site.
Also I added protected d6 site - it works.

sam hermans’s picture

I just noticed that in the Drupal module you have the possibility to NOT report core modules, do you have this option selected or not ?

Either way i will modify the site so that everything still works even if you do not report drupal core version.

dmitrii’s picture

All options are selected for System Status module.

sam hermans’s picture

Status: Needs review » Closed (fixed)

So i fixed all errors on the webinterface that can be caused when the drupal version is not reported. I'm going to close this issue since the basic authentication works fine, and open another for the core versions..

https://drupal.org/node/2271197