Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zenstackhq/authz-modeling-samples
Samples schemas for different patterns of modeling authorization
https://github.com/zenstackhq/authz-modeling-samples
authorization nodejs orm prisma typescript zenstack
Last synced: about 5 hours ago
JSON representation
Samples schemas for different patterns of modeling authorization
- Host: GitHub
- URL: https://github.com/zenstackhq/authz-modeling-samples
- Owner: zenstackhq
- License: mit
- Created: 2024-01-12T01:59:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-13T10:25:42.000Z (10 months ago)
- Last Synced: 2024-01-13T20:39:57.553Z (10 months ago)
- Topics: authorization, nodejs, orm, prisma, typescript, zenstack
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Samples ZenStack schemas for different patterns of modeling authorization
## What's ZenStack
[ZenStack](https://github.com/zenstackhq/zenstack) is a NodeJS full-stack toolkit which supercharges [Prisma ORM](https://prisma.io) in many ways. Please [read here](https://zenstack.dev/docs) first.
## About This Repo
This repo contains ZModel schemas and test code that demonstrate different patterns of modeling application's authorization.
You can find more detailed explanation in the blog post [Modeling Authorization in Prisma - No Theory, Just Code](https://zenstack.dev/blog/model-authz).
## How To Run
Make sure ["pnpm" is installed](https://pnpm.io/installation).
- pnpm install
- cd samples/[sample folder]
- pnpm generate
- pnpm test## Catalog
- [simple-acl](samples/simple-acl): simple access control list
- [simple-rbac](samples/simple-rbac): simple role-based access control
- [simple-abac](samples/simple-abac): simple attribute-based access control
- [multi-tenancy](samples/multi-tenancy): SaaS-like multi-tenancy authorization## Not Finding What You Want?
Please join [ZenStack Discord](https://discord.gg/Ykhr738dUe) to let us know your needs.