3

I need to implement everyauth with node.js Connect (not Express), very securely.

Despite the site provides some code samples for Connect, I'm not familiar with how node-Connect-session-middleware handles session.

Can someone please introduce some good simple examples to get start with?

PS. I found the official sample of Connect, but need a full working example.

http://www.senchalabs.org/connect/session.html

2 Answers2

2

I suggest you check out Passport (which I developed). everyauth tends to make assumptions that Express is present, making integration into Connect-only apps difficult.

I developed Passport after wanting something more modular and easier to integrate. It makes no assumptions, and is just simple middleware, so it drops in easily into Connect-based apps.

Jared Hanson
  • 15,940
  • 5
  • 48
  • 45
  • Jared, well, this looks exactly what I have been searching for. I really like your design concept, and actually found it's clear and easy integration to a connect-base project. I don't know how come I haven't hit your work until now, pity. Thanks a lot! I might be asking something during the development using your middleware. Great work, really. Thanks again. –  May 14 '12 at 09:42
  • @kenokabe Glad you like the project! Feel free to ping me with questions or feedback anytime. – Jared Hanson May 14 '12 at 17:35
  • I post a question on this theme, can you advise? http://stackoverflow.com/questions/10673337/node-jsconnectpassportpassport-google-oauth-error –  May 20 '12 at 12:21
0

Express.js is actually a thin layer on top of Connect. So you could just use that as a reference and see how they do it.

Pickels
  • 33,902
  • 26
  • 118
  • 178
  • After the question post, I have noticed what you say. I will investigate the Express sample more. Thank you, Pickels. –  May 14 '12 at 08:33