https://github.com/brian3814/cedar-nodejs-wrapper
Cedar policy as server proxied with Node.js
https://github.com/brian3814/cedar-nodejs-wrapper
authorization cedar nodejs policy policy-services-microservices
Last synced: 11 days ago
JSON representation
Cedar policy as server proxied with Node.js
- Host: GitHub
- URL: https://github.com/brian3814/cedar-nodejs-wrapper
- Owner: brian3814
- Created: 2024-08-24T08:22:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T02:56:04.000Z (over 1 year ago)
- Last Synced: 2024-11-18T03:35:10.141Z (over 1 year ago)
- Topics: authorization, cedar, nodejs, policy, policy-services-microservices
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cedar-nodejs-wrapper
This is a node.js-based wrapper around [cedar-agent](https://github.com/permitio/cedar-agent) to expose cedar functions through REST API.
## How to use
Before starting, make sure that Rust and Cargo are installed. If not installed, visit the [official Rust installation page](https://www.rust-lang.org/tools/install) to install.
Of course, [Node.js](https://nodejs.org/en/download/package-manager) must be installed as well.
After all prerequisites have been installed, execut below commands to start up the server.
```
npm install
node src/index.js
```
You may assign specific ports for the wrapped-up cedar server and node server through cmd arguments.
```
node install
node src/index.js --nodeport 3002 --cedarport 3003
```