hapi-authorization
hapi-authorization copied to clipboard
ACL plugin for hapijs
In hapi v17, config are not getting bonded with settings ``` server.bind({ config: settings }); ``` Due to which this.config.hierarchy is always coming as false
Server.bind send its info to h.context
This test case is failing: ``` it('Restricts access to protected route for multiple authorized roles that are not defined as plugin roles', (done) => { const server = new Hapi.Server();...
Removing the arrow function definition, the bonded config can be easily accessed as before (`this.config`). Close #26
Hey would be great if you start supporting `roles` too not only role. This: ``` var validate = function(username, password, callback) { // Perform authentication and callback with object that...