@rafatz/keymaster

1.0.0 • Public • Published

Keymaster - Gatekeeper API Manager Authorization Middleware

Authorization Middleware for the APIKey Manager Gatekeeper

Usage:

  1. Define environment variables GATEKEEPER_URL and GATEKEEPER_APP_ID with the value of the API Manager URL for authentication and the APP UUID.

  2. Add the GATEKEEPER_URL value as a destination to your destination service in SCP

  3. Import the middleware

const keymaster = require('@rafatz/keymaster');
  1. Set the router endpoint to use the middleware
app.get('/', keymaster, (req, rest, next) => {
    // do Something
});

Dependencies (22)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @rafatz/keymaster

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.98 kB

    Total Files

    3

    Last publish

    Collaborators

    • rafatz