Skip to Main Content
Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js
book

Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js

by Jeff Dickey
September 2014
Intermediate to advanced content levelIntermediate to advanced
256 pages
5h 25m
English
Peachpit Press
Content preview from Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js

Chapter 7. Building Authentication in Node.js

In the previous chapter, you automated the building of the application with Gulp. You’ll shift gears here and move on to authentication. In this chapter, you will be building a new, demo authentication app in Node.js outside of the social app you’ve been building. In the next chapter, you will integrate this authentication strategy into your social app.

Introducing Token Authentication

In any application, you need to authenticate the user making the requests to the server. There are two ways to do this with an Angular application:

Image Cookie-based authentication: This works like a traditional web application. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Node.js, MongoDB, and AngularJS Web Development

Node.js, MongoDB, and AngularJS Web Development

Brad Dayley

Publisher Resources

ISBN: 9780133962369Purchase book