Everyauth

screenshot of Everyauth
express

node.js auth package (password, facebook, & more) for Connect and Express apps

Overview

everyauth is a node.js library that provides authentication and authorization functionalities for Connect and Express apps. It supports various login methods such as password, Facebook, and more. The library is modular, easily configurable, and follows an idiomatic approach for extending authorization strategies.

Features

  • Modular - Supports Facebook, Twitter, basic login/password, and upcoming modules for beta invitation and more.
  • Easily Configurable - Allows powerful configuration of authorization strategies with granular control over steps and logic.
  • Idiomatic - Provides syntax for configuring and extending authorization strategies in an idiomatic and chainable manner.

Example Application

An example application is provided at ./example.

  • Setting up a localhost alias called local.host in the /etc/hosts file is necessary.
  • Update test/creds.js with credentials for integration tests.

Accessing the User

  • Access the user as req.user from the app server or everyauth.user in Express views.
  • Configure everyauth.everymodule.findUserById and optionally everyauth.everymodule.userPkey.
  • Express dynamic helpers like everyauth.loggedIn and everyauth.user are available in views.

Summary

everyauth is a useful node.js library for adding authentication and authorization features to Connect and Express apps. With its modular design, easy configuration, and idiomatic approach for extending strategies, developers can efficiently implement various login methods and access user information seamlessly within their applications.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.