Commit Graph

57 Commits

Author SHA1 Message Date
Alice Gaudon 359485170d UserNameComponent: ensure usage of user.name is optional
Fixes #19
2021-01-25 12:47:18 +01:00
Alice Gaudon e4768141bc Simplify RedirectBackComponent into PreviousUrlComponent
Closes #12
2021-01-24 22:42:20 +01:00
Alice Gaudon 1b8ff1428f Add persist session checkbox on login
Makes session not persistent by default
Closes #11
2021-01-24 16:33:33 +01:00
Alice Gaudon 8fab93e709 Use AsyncLocalStorage to provide requestId context 2021-01-22 15:54:26 +01:00
Alice Gaudon 93c41ebd7e Authenticated.test: reorganize tests
Closes #15
2021-01-22 13:35:30 +01:00
Alice Gaudon 49168b5391 Add account management (email addresses management, password management)
Closes #8
Closes #9
2021-01-22 12:22:11 +01:00
Alice Gaudon 7be3e00c46 Authentication tests: add no username component tests
Closes #7
2020-11-16 12:13:49 +01:00
Alice Gaudon 01277ea910 Authentication tests: add authenticate with email and password tests 2020-11-16 11:44:04 +01:00
Alice Gaudon a5ee9922ec Authentication tests: add authenticate with username and password tests 2020-11-15 15:51:52 +01:00
Alice Gaudon 72fe0bbda8 Authentication tests: add authenticate with email (magic_link) tests 2020-11-15 15:23:24 +01:00
Alice Gaudon 7db3e0166a Authentication tests: fix Cannot register without username test 2020-11-15 15:21:54 +01:00
Alice Gaudon 124bc8785f MagicLinkUserNameComponent: allow null username 2020-11-15 15:21:26 +01:00
Alice Gaudon da38fdaf72 tests: get rid of useless csrf.njk template 2020-11-15 15:15:21 +01:00
Alice Gaudon ef51d128f1 Authentication tests: refactor magic link following from mail 2020-11-15 14:21:11 +01:00
Alice Gaudon 0d0724c315 Authentication tests: add more tests to email registration 2020-11-15 14:16:17 +01:00
Alice Gaudon 42da8a68bb Validation: respond with http 400 instead of 401 2020-11-15 14:12:45 +01:00
Alice Gaudon b28e2b75b7 Authentication: Improve registration tests and fix register/login overlap 2020-11-15 12:20:57 +01:00
Alice Gaudon 698ace965f Add authentication tests for username registration 2020-11-14 18:16:58 +01:00
Alice Gaudon b75b227ca1 Add required username to magic link authentication and fix many errors 2020-11-14 17:24:57 +01:00
Alice Gaudon efdd81b650 Auth: refactor to support multiple auth factors and add password factor 2020-11-11 19:30:30 +01:00
Alice Gaudon 24d83c73ad Add basic development environment for testing purposes 2020-11-11 19:29:23 +01:00
Alice Gaudon 79c2f33000 Deprecate legacy migrations
Fix CreateUsersAndUserEmailsTableMigration


sq
2020-11-11 19:29:23 +01:00
Alice Gaudon 4d0c714dbd Render emails using NunjucksComponent's environment 2020-11-03 10:29:36 +01:00
Alice Gaudon 88e5e19730 Replace custom logging system with tslog 2020-11-02 17:50:12 +01:00
Alice Gaudon 595a6d4066 ModelQuery: add create() and fix boolean serialization 2020-10-02 12:08:01 +02:00
Alice Gaudon a98c06fa92 eslint: add no-floating-promises 2020-10-01 14:18:31 +02:00
Alice Gaudon 79d704083a Add many eslint rules and fix all linting issues 2020-09-28 14:15:22 +02:00
Alice Gaudon 5dc0bd710a Make nunjucks and static file server compatible with pkg 2020-09-24 22:42:55 +02:00
Alice Gaudon dfee2645e1 Express: add custom bind address setting 2020-09-17 21:15:37 +02:00
Alice Gaudon 969ab18b96 ModelRelation: sort recursive relations by tree 2020-09-08 19:11:19 +02:00
Alice Gaudon 892b830dc4 Code formatting and cleanup, dependencies upgrade and version 0.22.0-rc.8 2020-09-07 14:38:30 +02:00
Alice Gaudon 2f822aa61c ModelRelation: simplify foreign model constructor parameter 2020-09-07 14:30:11 +02:00
Alice Gaudon 0e37014667 ModelQuery: add nested eagerloading 2020-09-07 13:43:02 +02:00
Alice Gaudon e86356ae74 ModelQuery.union(): fix missing subquery variables 2020-09-06 16:02:53 +02:00
Alice Gaudon 17685a44be Improve field disambiguation to allow raw values when starting with ",',` 2020-09-06 15:44:37 +02:00
Alice Gaudon 4c482fb148 ModelQuery: add union() 2020-09-06 15:07:11 +02:00
Alice Gaudon 3a4606b328 ModelQuery: allow specifying raw value for sortBy() 2020-09-06 12:25:53 +02:00
Alice Gaudon 25f890e082 Remove unnecessary db query to determine whether a model exists in db 2020-09-06 10:45:26 +02:00
Alice Gaudon 27bd7400e2 ModelQuery: fix backticks on ORDER BY and remove extra useless spaces 2020-09-05 16:09:52 +02:00
Alice Gaudon e403dfa863 ModelQuery: fix field disambiguation 2020-09-05 15:51:44 +02:00
Alice Gaudon 9e38b003f9 Model relations: add recursive query and recursive relation 2020-09-05 14:56:19 +02:00
Alice Gaudon e29b6369af ModelQuery: add groupWhere and test it 2020-09-04 22:16:20 +02:00
Alice Gaudon 84f2f7118a Csrf protection test: migrate to supertest 2020-08-05 12:06:21 +02:00
Alice Gaudon 76811dd0b8 Add more tests for Model 2020-08-05 10:45:13 +02:00
Alice Gaudon 31f974c0a6 Serve static files extra early to avoid useless middlewares execution 2020-07-28 12:11:41 +02:00
Alice Gaudon 3a4755ce98 Give the redirectBack function its own Component back 2020-07-28 10:03:25 +02:00
Alice Gaudon be6e659ca2 ModelFactory: refactor make into create 2020-07-27 10:52:39 +02:00
Alice Gaudon a79e2292d7 Greatly simplify authentication system 2020-07-25 10:33:20 +02:00
Alice Gaudon 40181a973b Fix user schema 2020-07-24 16:13:15 +02:00
Alice Gaudon c0dd48d064 Fix missing fields by default and fix model construction flow 2020-07-24 15:40:40 +02:00