hapi-radius

0.0.12 • Public • Published

hapi-radius

Build Status Join the chat at https://gitter.im/iostat42/hapi-radius Codacy Badge

Hapi radius plugin.

This plugin is in the very early stages of development. Pleast note that a working radius server is required in order for the tests to pass. I will remedy this as soon as possible.

Install

git clone https://github.com/iostat42/hapi-radius.git

Usage

Basic Plugin Config:

{
    register: require('../..'),
    options: {
        ipAddress: '192.168.1.10',
        secret: 'mySharedSecret',
        options: {
            host: [ 'radiusA''radiusB' ], // accepts single or array of hosts
            port: 1812
        }
    }
}

Override testing default config:

Create test/artifacts/config.js
var config = {};
 
// Radius
 
config.radius = {
    ipAddress: '192.168.1.10',
    secret: 'mySharedSecret',
    options: {
        host: [ 'radiusA''radiusB' ], // accepts single or array of hosts
    }
};
 
// Config options for tests
 
config.app = {
    name: 'hapi-radius'
};
 
// Plugins to register
 
config.plugins = [
  {
    register: require('../..'),
    options: config.radius
  }
];
 
config.pluginOptions = {};
 
 
// User
 
config.user = {
    userName: 'user1',
    password: 'password'
};
 
 
module.exports = config;

Run Tests:

$ npm test

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i hapi-radius

Weekly Downloads

1

Version

0.0.12

License

MIT

Last publish

Collaborators

  • iostat42