0.0.12 • Published 9 years ago

hapi-radius v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
9 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

9 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago