0.0.12 • Published 8 years ago

hapi-radius v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago