Cerberus
A security wrapper to protect routes dynamically with Heimdall structure.
Motivation
The whole idea behind this project is to split concerns betweens API structure to handle auth and strategies separately.
Installation
TBD
Requirements
TBD
Usage
const { protect: withCerberus } = require('cerberus');
const {
terms, auth, config, user,
} = require('../services');
module.exports = (server) => {
Heimdall.attachMicroservice(server, withCerberus(config));
};
Available Strategies
- Local Strategy (login, senha)
- GPlus
- Facebook
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT