[Locomotive-users] HTTP_AUTHORIZATION
Ryan Raaum
ryan.raaum at gmail.com
Thu Jan 11 00:00:33 GMT 2007
On 1/10/07, Chris Abad <chris at integralimpressions.com> wrote:
>
> No, that's not what I'm trying to do. I already have the http
> authorization built into my app. What I'm trying to do is have the web
> server grab the credentials from the URL (I've seen it done w/ Apache, and
> assume this is done at the web server level) and pass it correctly through
> the header.
>
> Here's what I think I need:
> 1. What's the web server in Locomotive? Mongrel? Lighttpd?
>
Both. Default is mongrel. (can be changed to lighttpd by adding "server:
lighttpd" to config/locomotive.yml)
2. Where's the config file for that web server?
>
For mongrel, there is none by default, but you may create one and specify it
with "server-conf: /path/to/config" in locomotive.yml
For lighttpd the base config is in
/Locomotive2/Bundles/bundlename/config/base_lighttpd.conf
Best,
-r
On Jan 10, 2007, at 2:12 PM, Ryan Raaum wrote:
>
>
>
> On 1/10/07, Chris Abad <chris at integralimpressions.com> wrote:
> >
> > I've seen way in which you can configure Apache to take that part of the
> > URL and include it in the HTTP_AUTHORIZATION header, so I'm pretty sure this
> > needs to be done at the web server level. I'm just not sure what that is in
> > Locomotive (direct to Mongrel? Lighttpd?), where to change the config
> > settings, and what to set them up to (this last one I can probably look up
> > myself if I get answers to the first two).
> >
>
> Ok... have you seen/tried this? (I've not, but is seems like it may be
> useful to you...)
>
>
> http://blog.codahale.com/2006/05/11/basic-http-authentication-with-rails-simple_http_auth
>
> -r
>
>
> On Jan 10, 2007, at 1:47 PM, Ryan Raaum wrote:
> >
> >
> >
> > On 1/9/07, Chris Abad <chris at integralimpressions.com> wrote:
> > >
> > > I've tried hitting the URL I mentioned earlier and printing out the
> > > request.env information into the logs. The user/pass don't show up at
> > > all.
> > >
> >
> > Hrm. I'm afraid I'm not of much use here... Anyone?
> >
> > -r
> >
> > On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote:
> > >
> > >
> > >
> > > On 1/8/07, Chris Abad < chris at integralimpressions.com> wrote:
> > > >
> > > > Question, using Locomotive's setup (I'm assuming just a straight
> > > > connection to a single mongrel instance), is it possible to set the
> > > > HTTP_AUTHORIZATION header from a URL like this:
> > > >
> > > > http://admin:admin@localhost:3000/
> > > >
> > > > I'm not really sure where to look for this answer partly b/c I'm not
> > > > sure which program is responsible for setting this information w/
> > > > Locomotive's setup. Is it Mongrel?
> > >
> > >
> > > What happens if you try? Have you checked what makes it into the
> > > headers in the controller?
> > >
> > > Best,
> > >
> > > -r
> > >
> > > Thanks for the help.
> > > > _______________________________________________
> > > > Locomotive-users mailing list
> > > > Locomotive-users at lists.raaum.org
> > > > http://lists.raaum.org/mailman/listinfo/locomotive-users
> > > >
> > >
> > >
> > >
> > > --
> > > Ryan Raaum
> > > http://raaum.org
> > > http://rails.raaum.org -- Rails docs
> > > http://locomotive.raaum.org -- Self contained Rails for Mac OS X
> > > _______________________________________________
> > > Locomotive-users mailing list
> > > Locomotive-users at lists.raaum.org
> > > http://lists.raaum.org/mailman/listinfo/locomotive-users
> > >
> > >
> > >
> > > _______________________________________________
> > > Locomotive-users mailing list
> > > Locomotive-users at lists.raaum.org
> > > http://lists.raaum.org/mailman/listinfo/locomotive-users
> > >
> > >
> > >
> >
> >
> > --
> > Ryan Raaum
> > http://raaum.org
> > http://rails.raaum.org -- Rails docs
> > http://locomotive.raaum.org -- Self contained Rails for Mac OS X
> > _______________________________________________
> > Locomotive-users mailing list
> > Locomotive-users at lists.raaum.org
> > http://lists.raaum.org/mailman/listinfo/locomotive-users
> >
> >
> >
> > _______________________________________________
> > Locomotive-users mailing list
> > Locomotive-users at lists.raaum.org
> > http://lists.raaum.org/mailman/listinfo/locomotive-users
> >
> >
> >
>
>
> --
> Ryan Raaum
> http://raaum.org
> http://rails.raaum.org -- Rails docs
> http://locomotive.raaum.org -- Self contained Rails for Mac OS X
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>
--
Ryan Raaum
http://raaum.org
http://rails.raaum.org -- Rails docs
http://locomotive.raaum.org -- Self contained Rails for Mac OS X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070111/86e5f882/attachment-0001.htm
More information about the Locomotive-users
mailing list