Addin-auth is a project mainly written in JavaScript, it's free.
Steelmesh Authentication Addin (powered by everyauth)