All Projects → franciscogouveia → Hapi Rbac

franciscogouveia / Hapi Rbac

Licence: isc
RBAC (Rule Based Access Control) for hapijs

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hapi Rbac

Hapi Nuxt
Nuxt.js plugin for Hapi.js
Stars: ✭ 46 (-53.06%)
Mutual labels:  hapi
Jolly
Production ready boilerplate for hapi.js
Stars: ✭ 68 (-30.61%)
Mutual labels:  hapi
Febs Cloud
基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。预览地址:https://cloud.mrbird.cn
Stars: ✭ 1,295 (+1221.43%)
Mutual labels:  rbac
Hapi Plugin Websocket
HAPI plugin for seamless WebSocket integration
Stars: ✭ 47 (-52.04%)
Mutual labels:  hapi
Rpg Boilerplate
Relay (React), Postgres, and Graphile (GraphQL): A Modern Frontend and API Boilerplate
Stars: ✭ 62 (-36.73%)
Mutual labels:  rbac
Nestjs Roles
Type safe roles guard and decorator made easy
Stars: ✭ 78 (-20.41%)
Mutual labels:  rbac
Hapi React Hot Loader Example
Simple React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-55.1%)
Mutual labels:  hapi
Appy Backend
A user system to bootstrap your app.
Stars: ✭ 96 (-2.04%)
Mutual labels:  hapi
Gorbac
goRBAC provides a lightweight role-based access control (RBAC) implementation in Golang.
Stars: ✭ 1,148 (+1071.43%)
Mutual labels:  rbac
Jwt To Rbac
JWT-to-RBAC lets you automatically generate RBAC resources based on JWT tokens
Stars: ✭ 89 (-9.18%)
Mutual labels:  rbac
Micro Mesh
gRPC微服务架构实践
Stars: ✭ 50 (-48.98%)
Mutual labels:  rbac
Djaoapp
User login, billing, access control as part of a session proxy
Stars: ✭ 61 (-37.76%)
Mutual labels:  rbac
Casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Golang
Stars: ✭ 10,872 (+10993.88%)
Mutual labels:  rbac
Kbframe
一款基于Laravel框架开发的现代化二次开发框架,是高性能,高效率,高质量的企业级开发框架,具有驱动领域,敏捷开发,轻易上手,高内聚低耦合,开箱即用等特点。
Stars: ✭ 47 (-52.04%)
Mutual labels:  rbac
Testing Hapi
Hapi style guide compliant boilerplate (updated to v17!)
Stars: ✭ 90 (-8.16%)
Mutual labels:  hapi
Nodeexpressadmin
node实现后台权限管理系统,集成用户登录,权限管理。
Stars: ✭ 44 (-55.1%)
Mutual labels:  rbac
Ratify
A Hapi plugin for validating the schema of path, query, request body, and response body params using JSON-schema
Stars: ✭ 73 (-25.51%)
Mutual labels:  hapi
Generator Hapi Style
📦 Yeoman generator for scaffolding hapi apps and plugins
Stars: ✭ 96 (-2.04%)
Mutual labels:  hapi
Jcasbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Java
Stars: ✭ 1,335 (+1262.24%)
Mutual labels:  rbac
Gui Rbac Yii2
GUI for RBAC Yii2 Auth manager
Stars: ✭ 83 (-15.31%)
Mutual labels:  rbac

hapi-rbac

npm version Build Status Coverage Status Dependency Status

A Rule Based Access Control module for hapi.

This is inspired by the XACML policies.

Versions

  • 3.0.0 - Add Hapi17 support
  • 2.3.0 - Ability to use RegExp to match target values. Ability to match field to field. (updated rbac-core to 3.0.0)
  • 2.2.0 - Customized error responses
  • 2.1.0 - Usage of user defined data retrievals for target matching. Nested properties on target keys.
  • 2.0.0 - Simplified target (updated rbac-core to 2.0.0)
  • 1.3.0 - Use more data for target matching
  • 1.2.0 - Global default configuration is now possible
  • 1.1.0 - Added ability to dynamically retrieve policies for the route
  • 1.0.0 - Since this version, only node ^4.0 and hapi ^12.0.0 is supported. All the functionality and syntax remains the same.

How to use it

First, install

npm install --save hapi-rbac

Then, import the module in your hapi server instance.

async () => {
    try {
      await server.register({
        plugin: require('hapi-rbac'),
        options: {
          // rbac-option See API reference
        }
      });
    } catch(er) {
      // ...
    }
}

Then, configure your policies. Check the API Reference.

Learn more about Rule Based Access Control

To have a better idea of how this works, you can check my Bachelor's project presentation about XACML here (english), or here (portuguese).

Even though this plugin doesn't implement the XACML specification, it was based on its policies.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].