Start Keto:
docker-compose up
Start nestjs-app:
nx serve examples-nestjs-guard
Urls:
- Allowed access: http://localhost:3333/api?userId=user1
- Allowed access: http://localhost:3333/api?userId=user2
- Forbidden access: http://localhost:3333/api?userId=user3
- Forbidden access: http://localhost:3333/api
- src/app/app.controller.ts: Contains the secured endpoint
- src/app/guard/keto-guard.ts: Contains guard that protects the app