Various demos showing component pieces for doing secure authentication via HTTP Basic Auth.
Our aim is to use TLS in conjunction with Basic Auth, so that we're not sending plain text passwords over the wire.
For our use case, we're also interested in validating the returned credentials (i.e., username and password) against an LDAP server.
-
make-curl
- utility for generating testcurl
commands -
ldap-auth
- demo of how to authenticate against an LDAP server -
basic-auth/
- http servers prompting for basic authenticationhttp
- a simple http server with basic authhapi
- same as above, but we're usinghapi.js
as our server frameworkhapi-ldap
- same as above, but validating credentials against an LDAPhapi-ldap-tls
- same as above, but using TLS for encryption
-
tls/
- demos showing how to run various forms ofhttps
servershttps
- using thehttps
module (part of node's core library)tls
- using thetls
modulehapi
- usinghapi.js