Logging in to Express applications using Passport


show more Logging in to Express applications using Passport provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Logging in to Express applications using Passport

One of the oldest patterns in web applications is to have someone log in to your website. Then use a cookie to identify the user on subsequent requests. Fortunately, there's more express middleware available for handling logins with sessions. In this video, we''ll handle user logins, and then use middleware to store that information in a session. First, let's set up our project. Go to exercise files in chapter seven, and then in video five, copy the start folder to the desktop. Next, let's go to terminal and install all of the modules.

Change directory to that folder, I'm just going to drag it in, and then press return, and then type npm install. And then press return. Now that we've installed all the existing modules, let's add a couple more. There's one called Passport, Passport is a module that acts as middleware for Express and it handles logins. So let's install that now. Type in npm install --save, and passport. There's also a specific module I want to us...

Logging in to Express applications using Passport
Video duration: 8m 4s 3h 17m Intermediate

Viewers:

Logging in to Express applications using Passport provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...