O'Reilly logo

Node Security by Dominic Barnes

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

Authentication

Authentication is a process of determining that a user is who they claim to be, when they are attempting to perform some action through your application. There are many ways to accomplish this, and I will cover some of the more common ones here. With a few exceptions, my examples will boil down to a couple of available npm modules. You are more than welcome to use others to accomplish the same goals.

HTTP Basic Authentication

The first is the HTTP Basic Authentication, and it is one of the simplest techniques available. It allows a username and password to be submitted along with an HTTP request, and allows the server to restrict access if the expected credentials are not sent.

While using a web browser, a page that requires the HTTP ...

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