A one stop-shop for all your Node Passport Authentication needs. Ready to login, signup, password reset, social login/signup? Welcome, then! Hopefully, AllPassport becomes the Node alternative to Django AllAuth.
AllPassport uses the MEAN Stack. The goal of AllPassport is to get you up and running fast with your app, whiles authentication is already taken care of. It handles the plumbing works for you. Just run and profit.
This repo was inspired by Easy Node Authentication and Social Authentication in NodeJS and builds upon them.
- Switched to
express.Router()for easy url construction - Separated routes into Auth, API and AngularJS single-page-app route -- AngularJS app talks to API endpoints, when standard authentication is handled by Auth Router which is via Swig template engine
AllPassport is a combination of bits and pieces of the Passport authentication framework, cooked properly, with the needed spices using the right recipe.
In simple terms, AllPassport handles all your authentication needs. It uses Swig template engine to render the authentication aspects, then renders a template you could use in your actual app.
- Social Authentication: By default, AllPassport comes shipped with the ability to login via Local, Google, Facebook and Twitter
- *Passwords: reset, change, forgotten, whatever
- Emails: set primary email, verify email and even verifying the web exist. The last one isn't true.
- Link/Unlink social accounts to local
- One paged login/signup/social-login. On a single page is all your authentication forms. Call it a 'one-stop shop'
- Uses Swig - Think of it as 'Swag'.
- Seamless theme: A seamless login/signup forms to match almost any theme of yours. You may throw in your favorites too.
- Ooh dear, AngularJS: Rigged to play nice with AngularJS. Continue building the app using the Swig template engine, or let AngularJS take over
- Download this repo
- Change into directory. Do
npm installandbower install. Bower libraries are stored in/public/vendor - Then
gulp - Visit
localhost:3000 - Open
angular.htmlin the public folder and start building your AngularJS app straight up. - Install any libraries needed in your AngularJS app via bower, then link them up simply by
/vendor/package_dir/package.min.js
Open issues if any. Pull Requests are also welcomed.
- Make proper use of flash messages in templates
- Password reset
- Change password
- Email verification after sign up or login
See the License file