in your gist: you dopn't need express here. look at examples here: http://passportjs.org/guide/authenticate/ you can just use passport.authenticate in your request handler after checking the methods
Am Freitag, 15. Februar 2013 15:45:48 UTC+1 schrieb [email protected]: > > Thanks, > > This is the gist link to the simple proxy server code that i wrote using > express and node-http-proxy > > https://gist.github.com/jalaluddeen/4960691 > > what i wanna do is add authentication and session management to this so > that only requests from authenticated users are passed to apache or > elasticsearch. > > > On Friday, February 15, 2013 2:17:19 PM UTC+5:30, greelgorke wrote: >> >> yes, passportjs is a good choice. the examples on passportjs.org use >> express routes, but the important parts are passport.authenticate calls. >> it's agnostic enough. >> >> Am Freitag, 15. Februar 2013 01:02:26 UTC+1 schrieb José F. Romaniello: >>> >>> Ob sorry, i nver used passport other than as a connect middleware, and >>> as I said he probabily needs some kind of sessions to store at least the >>> user is logged in. So, i think connect will be easier. But if you know any >>> other way please go ahead >>> >>> i know also you could use connect and http proxy on the same instance of >>> the http server >>> >>> El jueves, 14 de febrero de 2013, Bradley Meck escribió: >>> >>>> Any reason not to use http-proxy and passport without express? >>>> >>>> -- >>>> -- >>>> 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 [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> 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 [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
