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 ...

Get Web Application Development with MEAN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.