@pan-os/cerberus
v1.0.10
Published
security wrapper to protect routes dynamically with heimdall structure
Downloads
31
Maintainers
Readme
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
- Restify
Usage
/**
* Module Dependencies
*/
const { protect: withCerberus } = require('cerberus');
/**
* Pseudo microservices
*/
const {
terms, auth, config, user,
} = require('../services');
module.exports = (server) => {
// Attach microservices to /
Heimdall.attachMicroservice(server, withCerberus(config));
};
Available Strategies
- Local Strategy (login, senha)
- GPlus
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.