I have challenged myself, I would like to write an authentication system with restify(node.js) and backbone.js.
My questions is, could somebody give me some tips, about security or which middleware I have to use for example.
I have challenged myself, I would like to write an authentication system with restify(node.js) and backbone.js.
My questions is, could somebody give me some tips, about security or which middleware I have to use for example.
Passport is a very well implemented module. Everyauth and passport are the top starred projects in github. Here is an amazing thread on stackoverflow about both of them . Just to reiterate - Async over Promises pattern. Also I love the modularity offered by passport. Saved me tons of code and makes your code look good.
I have used passport for facebook auth and implemented my own authentication using passport local. My backend is mongodb and mongoose helped me a lot.
I like express better than restify. It is extremly well documented and comes with a strong community support.