All Projects → fratzinger → feathers-casl

fratzinger / feathers-casl

Licence: MIT license
feathers.js + casl: hooks & channels

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to feathers-casl

Casl
CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
Stars: ✭ 3,610 (+14340%)
Mutual labels:  permissions, acl, authorization, casl
Vakt
Attribute-based access control (ABAC) SDK for Python
Stars: ✭ 92 (+268%)
Mutual labels:  permissions, acl, authorization
nova-permissions
Add Permissions based authorization for your Nova installation via User-based Roles and Permissions. Roles are defined in the database whereas Permissions are defined in the code base.
Stars: ✭ 115 (+360%)
Mutual labels:  permissions, acl, authorization
spicedb
Open Source, Google Zanzibar-inspired fine-grained permissions database
Stars: ✭ 3,358 (+13332%)
Mutual labels:  permissions, acl, authorization
Brandenburg
Laravel Authentication Package
Stars: ✭ 79 (+216%)
Mutual labels:  permissions, acl, authorization
rbac-tool
Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Stars: ✭ 546 (+2084%)
Mutual labels:  permissions, acl, authorization
Casbin4D
An authorization library that supports access control models like ACL, RBAC, ABAC in Delphi
Stars: ✭ 25 (+0%)
Mutual labels:  permissions, acl, authorization
Laravel Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Stars: ✭ 136 (+444%)
Mutual labels:  permissions, acl, authorization
Laratrust
Handle roles and permissions in your Laravel application
Stars: ✭ 1,799 (+7096%)
Mutual labels:  permissions, acl, authorization
Accesscontrol
Role and Attribute based Access Control for Node.js
Stars: ✭ 1,723 (+6792%)
Mutual labels:  permissions, acl, authorization
Simpleacl
Simple ACL for PHP
Stars: ✭ 105 (+320%)
Mutual labels:  permissions, acl, authorization
Bouncer
Eloquent roles and abilities.
Stars: ✭ 2,763 (+10952%)
Mutual labels:  permissions, acl, authorization
Think Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in ThinkPHP 6.0 .
Stars: ✭ 155 (+520%)
Mutual labels:  permissions, acl, authorization
Rbac
Hierarchical Role-Based Access Control for Node.js
Stars: ✭ 254 (+916%)
Mutual labels:  permissions, acl, authorization
riam
AWS IAM inspired policy engine in Rust
Stars: ✭ 19 (-24%)
Mutual labels:  permissions, authorization
rbac
Simple RBAC/ACL for Laravel 8 caching and permission groups.
Stars: ✭ 43 (+72%)
Mutual labels:  permissions, acl
dynamic-data-and-capabilities
[ARCHIVED] Dynamic Data and Capabilities in IPFS Working Group
Stars: ✭ 57 (+128%)
Mutual labels:  acl, authorization
graphql authorize
Authorization helpers for ruby-graphql fields
Stars: ✭ 23 (-8%)
Mutual labels:  permissions, authorization
caddy-security
🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐
Stars: ✭ 696 (+2684%)
Mutual labels:  acl, authorization
lua-casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Lua (OpenResty)
Stars: ✭ 43 (+72%)
Mutual labels:  acl, authorization

feathers-casl

npm GitHub Workflow Status Code Climate maintainability Code Climate coverage libraries.io npm GitHub license

About

Add access control with CASL to your feathers application.

This project is built for FeathersJS. An open source web framework for building modern real-time applications. It's based on CASL and is a convenient layer to use CASL in feathers.js.

Features

  • Fully powered by Feathers 4 & CASL 5
  • Written in TypeScript
  • Allows permissions for all methods create, find, get, update, patch, remove, or create, read, update, delete
  • Define permissions not based on methods: can('view', 'Settings') (Bring your custom logic)
  • Restrict by conditions: can('create', 'Task', { userId: user.id })
  • Restrict by individual fields: cannot('update', 'User', ['roleId'])
  • Native support for restrictive $select: can('read', 'User', ['id', 'username']) -> $select: ['id', 'username']
  • Support to define abilities for anything (providers, users, roles, 3rd party apps, ...)
  • Fully supported adapters: feathers-knex, feathers-memory, feathers-mongodb, feathers-mongoose, feathers-nedb, feathers-objection, feathers-sequelize
  • Support for dynamic rules stored in your database (Bring your own implementation ;) )
  • hooks:
    • checkBasicPermission hook for client side usage as a before-hook
    • authorize hook for complex rules
    • Disallow/allow multi methods (create, patch, remove) dynamically with: can('remove-multi', 'Task', { userId: user.id })
  • channels:
    • every connection only receives updates based on rules
    • channels-support also regards restrictive fields
    • rules can be defined individually for events
  • utils:
    • checkCan to be used in hooks to check authorization before operations
  • Baked in support for @casl/angular, @casl/react, @casl/vue and @casl/aurelia

Documentation

You need more information? Please have a look: https://feathers-casl.netlify.app/

Installation

npm i feathers-casl

Testing

Simply run npm test and all your tests in the test/ directory will be run. It has full support for Visual Studio Code. You can use the debugger to set breakpoints.

Help

For more information on all the things you can do, visit FeathersJS and CASL.

License

Licensed under the MIT license.

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].