https://github.com/soufantech/hie
hie allows you to effortlessly check for user permissions across a graph of roles/permissions of arbitrary complexity.
https://github.com/soufantech/hie
access-control authorization permission rbac role
Last synced: about 1 year ago
JSON representation
hie allows you to effortlessly check for user permissions across a graph of roles/permissions of arbitrary complexity.
- Host: GitHub
- URL: https://github.com/soufantech/hie
- Owner: soufantech
- License: mit
- Created: 2021-01-12T14:18:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T14:40:56.000Z (over 5 years ago)
- Last Synced: 2025-03-25T21:45:28.803Z (about 1 year ago)
- Topics: access-control, authorization, permission, rbac, role
- Language: TypeScript
- Homepage:
- Size: 96.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@soufantech/hie
hie allows you to build role hierarchies of any complexity and easily check user permissions across them.
[![typescript-image]][typescript-url] [![jest-image]][jest-url] [![npm-image]][npm-url]
## Installing
with yarn
`yarn add @soufantech/hie`
or npm
`npm install @soufantech/hie`
## Todo:
- docs: add usage examples;
- chore: add and configure semantic-release;
- refactor: refactor authorities to their own folder;
- move `RoleAuthority` interface from role-matcher.ts;
- test: remove use of `getMapping` function in `HierarchicalRoleAuthority` tests;
- refactor: remove `getMapping` function;
- feat: define role hierarchy as string (more or less like Spring Boot does);
---
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]: "typescript"
[npm-image]: https://img.shields.io/npm/v/@soufantech/hie.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@soufantech/hie "npm"
[jest-image]: https://img.shields.io/badge/tested_with-jest-99424f.svg?style=for-the-badge&logo=jest
[jest-url]: https://github.com/facebook/jest "jest"