Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thekevinbrown/graphweaver-rls-claims-reproduction
https://github.com/thekevinbrown/graphweaver-rls-claims-reproduction
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thekevinbrown/graphweaver-rls-claims-reproduction
- Owner: thekevinbrown
- License: apache-2.0
- Created: 2024-08-19T07:32:55.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T08:48:04.000Z (4 months ago)
- Last Synced: 2024-08-19T10:25:35.188Z (4 months ago)
- Language: TypeScript
- Size: 159 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RLS Claims Reproduction Graphweaver Project
## Purpose
This project attempts to replicate an ACL issue with filtering data by logged in user's organisation.
There are 3 claims in the database, but the user is only allowed to access 1 or 2 of these depending on which ACL is uncommented.
## To Run
1. Clone
2. `pnpm i`
3. `pnpm start`It uses an SQLite database in the root folder called `database.sqlite`.
## To Log In
This example uses fake magic link auth for simplicity. Use `[email protected]` as your username. A link will print to the console. Copy and paste this into the browser to log in.
## NOTE
The generated keys in `.env` are now well known keys. DO NOT USE THESE outside of this example project. Use the graphweaver CLI to generate your own as per: https://docs.graphweaver.com/adding-magic-link-authentication