RoR and Basic Authentication...

RoR and Basic Authentication...

Posted by: marc_oz
Posted on: 2006-03-01 21:38:00

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.


Re: RoR and Basic Authentication...

Posted by: psross
Posted on: 2006-03-02 15:21:00

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

In reply to:

Unfortunately, at this time, we do not have plans on reconfiguring our Ruby no Rails installation. Sorry about that. We'll keep this in mind the next time we make changes to the configuration, however.


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.

Tags: dreamhostdigest authenticationrorpeoplessupposeapachesuccessurl