Understanding server-side authentication
Some of the node modules (npm) that we are using in this chapter are as follows:
Passport
: Authentication module for NodeJSPassport-local
: Username and password authentication strategy for Passport and Node.jsPassport-facebook
: Facebook authentication strategyPassport-twitter
: Twitter authentication strategyPassport-google-oauth
: Google (OAuth) authentication strategiesJsonwebtoken
: Implementation of the JSON Web Token (JWT) standard. It is used to send encrypted JSON with sensitive dataExpress-jwt
: Express middleware to authenticate HTTP requests using JWT (JSON Web Token) and setsreq.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.