@pan-os/cerberus

1.0.10 • Public • Published

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

/@pan-os/cerberus/

    Package Sidebar

    Install

    npm i @pan-os/cerberus

    Weekly Downloads

    12

    Version

    1.0.10

    License

    MIT

    Unpacked Size

    187 kB

    Total Files

    16

    Last publish

    Collaborators

    • clucasalcantara