Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed framework to NestJS, implemented authentication, authorizatio…
…n and validation (#6) * Updated gitignore for MacOS * Nest initial scaffolding, Vite react-ts initial scaffolding, with working auth0 authentication, token creation and axios client * Revert "Nest initial scaffolding," This reverts commit f4edcad. * wiped ci scripts * Setup pnpm workspace * Body validation working Next step authorization * Deleted remnaince of typeorm messup * Authorization using jwt with a global guard (may need revisiting for authorization) * Revert "Authorization using jwt with a global guard" This reverts commit 093356e. * Auth with oauth2 official middleware * Moved auth0 constants to config * Small commit pre-merge * Revert "Revert "Authorization using jwt with a global guard"" This reverts commit 018711c. * Using app guard * Now encoding user role in request, better swagger annotations * In the process of implementing authorization IMPORTANT: changed build system, now both frontend and backend import typescript, compile it, watch it, do their own thing * Fixed preview command with updated compiled file path * First phase of authorization: simple rules next step: - casl + prisma (or other supported orms) to avoid weird logic, and to filter the resource for the rows that are accessible to the current user - oauth0 service to verify that some fields match the user's data on user creation * Added access control to all user routes * avaiabilitiesTable updated * Proper validation with Joi of all request fields & prettier reformat * Integrated previously written frontend with monorepo moved fronted to vite cause speed (and typescript transpiling) Formatting scripts * Moved to env variables with env files instead of yaml config file for the api * Ultima commit di Marco --------- Co-authored-by: Marco Pappalardo <[email protected]>
- Loading branch information