Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbarbadillo/sailssimpleauth
A sails backend with simple passport authentication
https://github.com/jbarbadillo/sailssimpleauth
Last synced: about 23 hours ago
JSON representation
A sails backend with simple passport authentication
- Host: GitHub
- URL: https://github.com/jbarbadillo/sailssimpleauth
- Owner: jbarbadillo
- Created: 2016-02-03T18:51:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T19:20:21.000Z (almost 9 years ago)
- Last Synced: 2024-11-18T05:19:53.300Z (about 2 months ago)
- Language: JavaScript
- Size: 122 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sailsSimpleAuth
In future updates this sails application will include an authentication based on
passport.js. The idea is to use this backend with an emberjs frontend and connect
the authentication.The goal of this repo is to help to understand how authentication can be handled
in the backend and let the login and registration tasks to the frontend.## Intro
Passport authentication is based on this tutorial:
* [Sails.js: User authentication](http://miscposts1.blogspot.com.es/2014/09/sailsjs-user-authentication.html)
Instal the following dependencies:
* `npm install bcrypt-nodejs --save`
* `npm install passport --save`
* `npm install passport-local --save`The reason for using bcrypt-nodejs instead of bcrypt is that gives less Installation
problems. The usage is basically the same.