a Sails example application based on https://gist.github.com/theangryangel/5060446
git clone https://github.com/webjames/sails-passport-example.git
cd sails-passport-example
npm install
sails lift
Visit
http://localhost:1337
You should not be able to list, create http://localhost:1337/user/ unless logged in. You can log in with the supplied credentials:
Username: bob
Password: secret