mineiro / auth-demos

Demo code for secure authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auth Demos

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 test curl commands

  • ldap-auth - demo of how to authenticate against an LDAP server

  • basic-auth/ - http servers prompting for basic authentication

    • http - a simple http server with basic auth
    • hapi - same as above, but we're using hapi.js as our server framework
    • hapi-ldap - same as above, but validating credentials against an LDAP
    • hapi-ldap-tls - same as above, but using TLS for encryption
  • tls/ - demos showing how to run various forms of https servers

    • https - using the https module (part of node's core library)
    • tls - using the tls module
    • hapi - using hapi.js

About

Demo code for secure authentication


Languages

Language:JavaScript 43.3%Language:HTML 28.6%Language:CSS 22.1%Language:CoffeeScript 5.9%