2.1.0 • Published 1 year ago

bimedia-rest-security v2.1.0

Weekly downloads
5
License
BSD-2-Clause
Repository
github
Last release
1 year ago

bimedia-rest-security

Provide client authentication to an architect application using a rest plugin

Installation

npm install --save https://github.com/bimedia-fr/bimedia-rest-security.git

Usage

Boot Architect :

var path = require('path');
var architect = require("architect");

var config = architect.loadConfig(path.join(__dirname, "config.js"));

architect.createApp(config, function (err, app) {
    if (err) {
        throw err;
    }
    console.log("app ready");
});

Configure rest-security with Architect config.js :

module.exports = [{
    packagePath: 'bimedia-rest-security',
    keypath: 'http://localhost:8086/api/key/%s', /* Private key server , %s will be replaced with principal */
    timestampValidity: 15*60, /* Timestamp validity, in seconds, default 60 */
    scheme: 'BWS', /* Authorization scheme, default BWS */
    name: 'auth', /* Logger name, default auth */
    httpHeaderPrefix: 'x-bm' /* http prefix name, default x-bm */
}];
1.2.0

1 year ago

2.1.0

1 year ago

2.0.0

7 years ago

1.1.0

8 years ago

0.0.1

10 years ago