Wednesday, 2 September 2020

How to add permissions, roles, etc. to a Node app

Hi all!We built an open source product for adding permissions, roles, etc. to Node.js apps, called oso. Under the hood it's a policy engine that's embedded in your application, and the idea is that you write policies using the oso policy language to govern who can do what inside your application, then you integrate them with a few lines of code using our library.Roles are a common pattern to reach for when setting up permissions, but we've found that they're limited and can get clunky, so oso provides a language (Polar) that's purpose-built for representing common domain concepts that can be useful like data ownership, hierarchies, relationships, etc.You can use oso in any Node.js application (we support Javascript and Typescript). We're planning to build an Express integration soon, and would welcome any specific feature requests if you have them.We're continuing to build features and integrations, so we're keen to hear any feedback and happy to answer any questions.Some useful links:Quickstart: https://docs.osohq.com/getting-started/quickstart.htmlNode.js library docs: https://docs.osohq.com/using/libraries/node/index.htmlSource code: https://github.com/osohq/oso/tree/main/languages/jsFeel free to join us on Slack for any questions: join-slack.osohq.comPS We also support Ruby, Python, and Java, and are actively working on other languages.

Submitted September 02, 2020 at 03:21PM by gneray

No comments:

Post a Comment