Hapi Udaru Authentication Plugin
Udaru is a Policy Based Access Control (PBAC) authorization module. It supports Organizations, Teams and User entities that are used to build the access model. The policies attached to these entities define the 'Actions' that can be performed by an entity on various 'Resources'.
See the Udaru website for complete documentation on Udaru.
To install via npm:
npm install @nearform/udaru-hapi-plugin
const Hapi =const UdaruPlugin =...const server = Hapiawait server
In order to register udaru hooks, just provide a
hooks key in the plugin options where keys are the names and values are handler functions (or array of functions).
const Hapi =const UdaruPlugin =...const server =await server
Copyright nearForm Ltd 2017. Licensed under MIT.