Getting Started
ActionHero Authentication Plugin - A Stateless authentication plugin for actionhero.js API Server.
ah-auth-plugin is a plugin for actionhero which enables stateless authentication to API Server using JSON Web Token. It doesn’t enforce you to use a certain database to persist user data, nor it uses any session or cache to store the user state. Instead, with some interface you provide using the nice api
object of actionhero, it abstracts only the authentication flow for you. This flow is somewhat similiar to those in securesocial, an authentication plugin for Play Framework.
Features
- Stateless, via JSON Web Token
- Database-agnostic
- Email verification, via ah-nodemailer-plugin
- Easy configuration
- Extendable
Dependency
- node
>=0.10 and <0.11
- actionhero
>=8.0.0
- ah-nodemailer-plugin,
>=0.0.4
- node-jsonwebtoken,
>=0.2.0
- node-gyp, for building
scypt
andemail-templates
package.
For operating system specific instructions (like gettingnode-gyp
working on Windows), read the official node-gyp installation instructions.