If you need more than basic auth (user and pass in a header) you will need also sessions, so rather than the http-proxy i will recommend you using connect/express + passport, and to pipe the requests after validating the user thru mikeal/request.
This is more than just a proxy. Imho there is no such thing as proxy WITH authentication. Do not use bodyparser middleware since it will read all the stream and you will not be able to fully pipe the requests. 2013/2/14, jal...@algotree.com <jal...@algotree.com>: > Hi, > > > I have an elasticsearch database and an clients make ajax queries from the > javascript files served by apache, What I am trying to build is a proxy > server in nodejs which authenticates both the request to apache and ajax > queries. > > I have built a proxy server using nodejitsy/node-http-proxy in front of > apache and elasticsearch, How do i go about authentication as mentioned > above. > > Thanks > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nodejs+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Enviado desde mi dispositivo móvil -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.