1.0.10 • Published 5 years ago

@pan-os/cerberus v1.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Cerberus

wercker status

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
  • 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