https://github.com/aserto-dev/authzen-todo-backend
https://github.com/aserto-dev/authzen-todo-backend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/aserto-dev/authzen-todo-backend
- Owner: aserto-dev
- License: mit
- Created: 2024-03-05T06:26:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T22:57:21.000Z (about 2 years ago)
- Last Synced: 2025-03-12T05:03:08.376Z (over 1 year ago)
- Language: TypeScript
- Size: 83 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AuthZEN Todo Backend
## Setup
### Install dependencies
To install the application dependencies, run the following command:
```shell
yarn
```
### Set up the `.env` file
Rename the `.env.example` file to `.env` and update the `AUTHZEN_PDP_URL` variable. The authorization middleware will send AuthZEN requests to `${AUTHZEN_PDP_URL}/access/v1/evaluations`.
Optionally, set the `AUTHZEN_PDP_API_KEY` variable if your authorizer needs an API key. You should prefix it with `basic` or `Bearer` as appropriate. If set, the authorization middleware will add the `authorization: ${AUTHZEN_PDP_API_KEY}` header to every authorization request.
```shell
JWKS_URI=https://citadel.demo.aserto.com/dex/keys
ISSUER=https://citadel.demo.aserto.com/dex
AUDIENCE=citadel-app
AUTHZEN_PDP_URL=https://authorizer.domain.com
AUTHZEN_PDP_API_KEY=basic YOUR_API_KEY
```
## Start the server
```shell
yarn start
```