O'Reilly logo

Web Application Development with MEAN by Robert Onodi, Adrian Mejia, Amos Q. Haviv

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding server-side authentication

Some of the node modules (npm) that we are using in this chapter are as follows:

  • Passport: Authentication module for NodeJS
  • Passport-local: Username and password authentication strategy for Passport and Node.js
  • Passport-facebook: Facebook authentication strategy
  • Passport-twitter: Twitter authentication strategy
  • Passport-google-oauth: Google (OAuth) authentication strategies
  • Jsonwebtoken: Implementation of the JSON Web Token (JWT) standard. It is used to send encrypted JSON with sensitive data
  • Express-jwt: Express middleware to authenticate HTTP requests using JWT (JSON Web Token) and sets req.user

Authentication with PassportJS

PassportJS is an npm module that can be added to the ExpressJS middlewares. It uses sessions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required