Skip to content

iostat42/hapi-radius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Hapi plugin for radius authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published