express-cookie-session-auth
v1.0.3
Published
NodeJS module for handling authentication and authorization using session tokens and cookies on an express web server
Downloads
8
Maintainers
Readme
express-cookie-session-auth
express-cookie-session-auth
is a simple, customizable authentication and authorization manager for express-based applications.
While express-cookie-session-auth
provides default in-memory user, group, and session managers, these can easily be overridden with developer-provided interfaces.
Install
TODO: put on npm
Setup
Examples
Get User
Users & Groups
Logging in/out
Restricting Access
Dependencies
Express
express-cookie-session-auth
is built specifically to be used with Express web framework for Node.js
Express is distributed under the Creative commons license.
cookie-parser
express-cookie-session-auth
uses cookies to track sessions, and cookie-parser
makes this easier, as well as allow for the use of signed cookies.
cookie-parser
is distributed under the MIT license.
express.json() (optional)
Used by the auth.login.endpoint
for the username and password. Does not need to be used if auth.login.endpoint
is never used.
This module is included with Express.
License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.