Shayne Czyzewski
f444eaae47
feat(auth): Added flexible validation checks for User entity email and password ( #376 )
...
Adds an additional Prisma middleware for User entity validation checks that the user can disable and/or extend
Closes #88 and fixes #100
2021-12-07 13:22:56 -05:00
Martin Šošić
d86b53cb24
Merge pull request #279 from saatvikshah/auth_opt_out
...
Allow operations to opt out of auth middleware
2021-07-21 16:28:18 +02:00
Martin Sosic
748dfb5725
feat: Wasp can now run custom setup code on server start ( #199 ).
2021-07-21 16:14:38 +02:00
Saatvik Shah
d0c5114a52
Address review comments
2021-07-09 08:04:29 +02:00
Saatvik Shah
a85b408b60
Allow operations to opt out of auth middleware
...
This patch allows operations to individually specify whether they want
to use or opt out of auth middleware, via an additional `auth` argument
under the actions/queries sections. If left unspecified it is assumed to
be true.
This is addressed by removing the current global auth middleware
registration, and adding it instead to individual operation route
specification.
2021-07-05 21:20:56 +02:00
tolarianwiz
2d54d005e5
refactor: extract server npm dev dependencies
...
Now dev dependencies in package.json are no more hardcoded, instead they are generated (like dependencies) from ServerGenerator.hs and inserted as devDepsChunk.
2021-05-31 20:30:08 +02:00
caz-gh
df619ff943
feat: add 'helmet' to node server dependencies
2021-05-19 16:40:56 +02:00
Martin Sosic
8d3e3830f4
fix: bumped Prisma version to 2.22.1.
2021-05-18 21:18:05 +02:00
Martin Šošić
f9e8f88b66
Upgraded to Prisma 2.21 (stable migrations) + postgre can be used in local dev.
...
- `wasp db migrate-save` and `wasp db migrate-up` got replaced with `wasp db migrate-dev`.
- Wasp now has a declarative way to express which db is used, postgresql or sqlite: `db { system: PostgreSQL }`.
- Prisma is now at the latest version, 2.21. PSL parser was upgraded to work with this.
- PostgreSQL can now be used for local development.
- We migrated examples/realworld to work with this new version of Wasp.
2021-04-21 14:06:25 +02:00
Martin Šošić
92937b5e65
Implemented support for dotenv file. ( #208 )
2021-04-16 12:43:57 +02:00
Trieu Vu
2bb96cf9fb
missing mustache delimiter
2021-02-23 12:08:02 +01:00
Trieu Vu
4e95c4dcda
remove createNewUser, use a direct call to prisma
2021-02-23 12:08:02 +01:00
Jack Carroll
01642db6fa
Handle case when JWT token verification fails ( #177 )
...
* handle case when JWT token verification fails
* added more verbose error handling to to jwt verify
* updated error handling to throw unknown errors
* Fix
Co-authored-by: Martin Sosic <sosic.martin@gmail.com>
2021-02-09 17:00:31 +01:00
Martin Šošić
cfa6985abd
Added support for manual deployment of generated code (backend and frontend) ( #167 )
2021-02-03 19:26:14 +01:00
Martin Sosic
2d0eb0a967
Fix #159 : error if 'auth' not defined.
2020-12-18 11:25:43 +01:00
Martin Sosic
f52b719291
Fixed prisma version to 2.12.1 .
2020-12-10 15:54:17 +01:00
Martin Sosic
6a4469c370
Merge branch 'master' into realworld
2020-12-01 11:54:57 +01:00
Matija Sosic
6527319581
Added password hashing middleware to Prisma instance - dev cannot change/update password without it being hashed. ( #149 )
2020-11-27 18:11:54 +01:00
Martin Sosic
57412b8b3c
Added favorited articles.
2020-11-26 22:48:35 +01:00
Martin Sosic
609bb19846
Added popular tags to homepage.
2020-11-26 16:35:38 +01:00
Matija Sosic
8e451dbe6c
Implemented simple signup function for Wasp developer to use out-of-the-box. ( #142 )
2020-11-19 16:28:42 +01:00
Matija Sosic
4ea507312c
Fixed #103 : app crashes when no auth. ( #106 )
2020-10-28 18:12:27 +01:00
Matija Sosic
6a59804a46
Authentication generation ( #74 )
2020-10-19 14:45:54 +02:00
Martin Sosic
54b994bb0a
Entities are now injected into operations (if declared in Wasp).
2020-10-07 15:29:21 +02:00
Martin Sosic
ca039304f9
Wasper can now specify npm dependencies.
2020-09-29 13:46:48 +02:00
Martin Sosic
5a0ddf71f5
Set node version of generated project to current LTS version.
2020-09-22 14:56:32 +02:00
Martin Sosic
a4d56b41df
Added check of node version when running node commands.
2020-09-17 13:04:19 +02:00
Matija Sosic
0bc5b2eec8
Added npm packages needed for using Prisma. ( #37 )
2020-09-11 15:06:38 +02:00
Martin Sosic
bc5caef944
Implemented new Action and removed old Action and Button.
2020-09-07 13:26:53 +02:00
Martin Sosic
69f45c40a7
Added HttpError on server, to be used in operations.
2020-09-04 15:14:06 +02:00
Martin Sosic
faf34a7d26
Added react-query, implemented useQuery wrapper for it, refactored Todo
...
example app to use new queries, removed old Wasp code from it.
2020-09-03 17:52:34 +02:00
Martin Sosic
f5fe865193
Implemented simple Query generator on both FE and BE.
2020-09-01 16:58:34 +02:00
Martin Sosic
8bec4c8e20
Implemented generation of simple node server.
2020-07-27 17:44:21 +02:00