@rafatz/keymaster
v1.0.0
Published
Authorization Middleware for the APIKey Manager Gatekeeper
Readme
Keymaster - Gatekeeper API Manager Authorization Middleware
Authorization Middleware for the APIKey Manager Gatekeeper
Usage:
Define environment variables GATEKEEPER_URL and GATEKEEPER_APP_ID with the value of the API Manager URL for authentication and the APP UUID.
Add the GATEKEEPER_URL value as a destination to your destination service in SCP
Import the middleware
const keymaster = require('@rafatz/keymaster');- Set the router endpoint to use the middleware
app.get('/', keymaster, (req, rest, next) => {
// do Something
});