ЗАПИСИ С МЕТКОЙ #basic

[← Вернуться ко всем меткам]

Creating the simplest HTTP server with basic authentication using node.js

In this article I will show you how to create the simplest possible HTTP server with basic authentication in node.js. I have to warn you though, I needed a quick and dirty solution for testing purposes, so this is definitely not for production use. You should at least keep hashes of user passwords, not plaintext passwords themselves, and use digest authentication as a more secure method.
        First, install the htpasswd module globally:

[читать далее]