jbarbadillo / sailsSimpleAuth

A sails backend with simple passport authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

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.

About

A sails backend with simple passport authentication


Languages

Language:JavaScript 99.1%Language:CSS 0.9%