gitcloud
node-casbin
gitcloud | node-casbin | |
---|---|---|
1 | 6 | |
12 | 2,487 | |
- | 1.0% | |
4.2 | 5.8 | |
8 days ago | 18 days ago | |
TypeScript | TypeScript | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gitcloud
-
Authorization is still a nightmare for engineers
> However: you seem to target developers. Why do you force me to leave my IDE and use your "rules editor"? Can I not write all those things in my IDE, with all the support it brings, and integrate this into my CICD flow? (yes, there is the .polar file, but why force me to jump through hoops?)
Hey valenterry! Oso CTO here. You can absolutely write policies locally and integrate this with CI/CD. We have vscode extension for the former, and CI tools for running local dev environments and CI for running this locally or in CI or whatever.
The UI is mostly nice for getting started development experience, e.g. it integrates directly with Oso Cloud without needing to configure credentials.
> Then, why did you create a new DSL and not a merely a (de-)serializable datastructure (which will indeed look like a dsl)? One, that is powerful enough to represent the capabilities you need. Then, I could in fact use any language (library) of my choice and create the rules from this language, which just has to create the datastructure.
We have a post on this coming soon! The short version is that Polar is a logic language based on Prolog/Datalog/miniKanren. And logic languages are a particularly good fit for representing the branching conditional logic you often see in authorization configurations.
And it made it easier for us to do custom work like add inline policy tests.
> Apart from that, I really like the `yes, if` idea! Would be nice to hear a bit more about that (unfortunately, the article pretty much ends there). Such as: how to deal with actions that change things and can (or must) potentially be run before the authorization is completed and such.
We typically recommend authorizing in two places: at the start of a request, and then when fetching data.
e.g. in our demo app, authorizing "can a user create an issue" involves authorizing a "create_issue" action against the repository itself: https://github.com/osohq/gitcloud/blob/sam/list-filtering/se...
Whereas anything listing issues calls the `list_local` method and does the `yes, if` style approach.
node-casbin
-
Building RBAC in Node
Node-Casbin
-
Suggestion on implementing Authorization in Node.js express
Any good authorization frameworks for Node.js like .NET core's Policy based authorization. I explored node-casbin but found it very terse to get hands-on.
-
Social network on microservices
If you are looking for something a little more complex, declarative and flexible, casbin has been around for quite some time. Also consider, oso. It looks like a more modern and feature-rich tool to me.
- Casbin: An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js
What are some alternatives?
bridgekeeper - Django permissions, but with QuerySets
CASL - CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
oso - Oso is a batteries-included framework for building authorization in your application.
reauth-nextjs
accesscontrol - Role and Attribute based Access Control for Node.js
nexus-shield - 🛡 Nexus plugin to ease the creation of the authorization layer
objection-authorize - isomorphic, "magical" authorization integration with Objection.js 🎉
solana-web3.js - Solana JavaScript SDK
sqlx-adapter - Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs
pycasbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Python
blueauth - 🔐 Serverless passwordless authentication. No databases needed. Use in just 1 line in serverless, middleware, express, next.js, and more.
awesome-auth - 📊 Software and Libraries for Authentication & Authorization & SSO & IAM