RoR and Basic Authentication

software development

#1

Anyone else interested in getting -passheader “Authorization” added to the DreamHost FastCGI configuration in Apache?

This would allow for easy support of Basic and Digest authentication…

The other option is combining ModRewrite URL rewrites and mucking about with Rails routes…

Any other ideas?

Marc

Ps. has anyone else noticed a change in the support peoples response. I get the impression that a layer (or more) has been injected between the customers and the clueful foke… such is the pain of success I suppose.


#2

I’ve asked support about this a couple of months ago and got the following response:

For now I’ve worked around this with the following dispatch rewrite rule:

RewriteRule ^(.*)$ dispatch.fcgi [E=X_HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]I’m picking up the variable with:

request.env['REDIRECT_REDIRECT_X_HTTP_AUTHORIZATION']You may find you don’t need the REDIRECT_ prefixes. I haven’t yet worked out what part of my mod_rewrite setup is causing that.