trailsjs / sails-auth

Passport-based User Authentication system for sails.js applications. Designed to work well with the sails-permissions module.
https://www.npmjs.org/package/sails-auth
MIT License
265 stars 141 forks source link

Question: Some newbie examples? #117

Closed romu70 closed 8 years ago

romu70 commented 8 years ago

Hi, I'm a back end newbie. Indeed, I'm a web development newbie even if I've a pretty long time in computing.

I've chosen Sails because it seems pretty easy, with similar concepts as in RoR, which I tried to learn some years ago. I've got a basic knowledge about those concepts from routing, MVC (which I've used on desktop apps), db layers, etc.

Authentication is a must have when we talk about web app, and as far I understood sails-auth is the Sails more or less official module which provides such a feature.

But, for a newbie, documentation is too much light. I've read the wiki, the #19 issue and so on, but that's not enough for me to be able to setup the module and, more important, to be able to check it works as expected. Which would be a proof I've done things the right way.

Of course, I don't ask you to give the whole explanation of Passport, and of each authentication providers, but a complete example, from the Js back end to some HTML would be great. Of course, I can help to improve such documentation.

Thanks.

romu70 commented 8 years ago

Just saw the team as moved to Trails, so forget my question.

bora89 commented 8 years ago

@romu70 Indeed, documentation is very poor. Did someone figure out how to use that?