zenstackhq / authz-modeling-samples

Samples schemas for different patterns of modeling authorization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Samples ZenStack schemas for different patterns of modeling authorization

What's ZenStack

ZenStack is a NodeJS full-stack toolkit which supercharges Prisma ORM in many ways. Please read here 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.

How To Run

Make sure "pnpm" is installed.

  • pnpm install
  • cd samples/[sample folder]
  • pnpm generate
  • pnpm test

Catalog

Not Finding What You Want?

Please join ZenStack Discord to let us know your needs.

About

Samples schemas for different patterns of modeling authorization

License:MIT License


Languages

Language:TypeScript 100.0%