Quick Overview
Apex is a framework that works on top of Pyramid focused on simplifying authentication, but, also activating a number of other features. Apex has a single user model and encourages you to use a Foreign Key relation to any Profile information you would like to store.
With a recent project, compatibility between node.js and a Pyramid application required similar functionality between both servers.
What is included?
Authentication wrappers around Everyauth
Requirements
- Node.js >= 18.0.0
- Sequelize 6.x
- bcrypt 5.x
Usage
const { Sequelize } = require('sequelize');
const initModels = require('apex_everyauth');
const sequelize = new Sequelize('database', 'username', 'password', {
host: 'localhost',
dialect: 'mysql',
});
const models = initModels(sequelize);Authentication
- Local authentication uses salt + BCrypt
- http://codahale.com/how-to-safely-store-a-password/
- Everyauth is used for OpenID/OpenAuth providers and supports:
- Yahoo
- Microsoft Live
- Bitbucket
- Github
- Identi.ca
- Last.fm
- Any OpenID provider