Commit Graph

50 Commits

Author SHA1 Message Date
Alice Gaudon b736f5f6cb Improve middleware definition and cleanup code 2020-09-25 22:15:57 +02:00
Alice Gaudon 79d3b51f90 Pass a whole Session to WebSocketListeners 2020-09-23 08:55:35 +02:00
Alice Gaudon 2effaf13eb Add AuthComponent.getAuthGuard() 2020-09-23 08:46:37 +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 b84c2cdff1 Code formatting and cleanup 2020-09-06 10:53:28 +02:00
Alice Gaudon f07704c6dc Allow Model classes to override primary key fields 2020-09-06 10:23:32 +02:00
Alice Gaudon f6b326f802 Move EMAIL_REGEXP to Validator 2020-09-06 10:21:47 +02:00
Alice Gaudon fae5c68cd0 Auth: always populate req.models.user, thus reducing db requests 2020-08-30 17:31:51 +02:00
Alice Gaudon 38a9c6ad15 user registration: fix late user save for when a user id is needed 2020-08-26 14:03:41 +02:00
Alice Gaudon 272688da26 Reduce the amount of SQL requests made for authentication 2020-07-28 12:10:29 +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 21b7def9e4 Fix some model refactor usages 2020-07-26 11:37:01 +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
Alice Gaudon 24de732167 Improve approval mode component security, reliability and usage 2020-07-24 13:00:20 +02:00
Alice Gaudon 7a1656ea7f Change public_url config field name to base_url 2020-07-24 12:59:44 +02:00
Alice Gaudon 7f398c1d4e Make models extendable 2020-07-24 12:58:06 +02:00
Alice Gaudon f127abbc74 Finish promoting email views and add backend controller 2020-07-20 17:32:32 +02:00
Alice Gaudon fe772c4e14 WebSocketListener: make cookies+session optional 2020-07-19 17:37:10 +02:00
Alice Gaudon 197b963e4c Add cache interface 2020-07-19 12:01:22 +02:00
Alice Gaudon eb935bf52a Fix auth redirect_uri chain 2020-07-15 12:31:07 +02:00
Alice Gaudon 634edda704 RedirectBackComponent: fix it and integrate it into NunjucksComponent 2020-07-15 10:24:01 +02:00
Alice Gaudon d6266e4396 Promote auth view to core 2020-07-14 15:06:30 +02:00
Alice Gaudon c2b35b473d Fix magic link buttons url scheme 2020-07-12 11:54:19 +02:00
Alice Gaudon 7da68f2715 Fix magic link lobby email display 2020-07-12 10:32:21 +02:00
Alice Gaudon 0e96a285ac Properly split routing in 2 steps: init, handle 2020-07-11 11:46:16 +02:00
Alice Gaudon b043513fe8 Bug fixes and app settings 2020-06-27 17:12:50 +02:00
Alice Gaudon 10257b8294 ManyModelRelation: add cloneReduceToOne method 2020-06-27 14:58:39 +02:00
Alice Gaudon ec5b2b9aa0 Revamp model system
- Add model relations
- Get rid of SQL_CALC_FOUND_ROWS (deprecated)
- Eager loading
2020-06-27 14:45:05 +02:00
Alice Gaudon c8157b7bb0 Add optional user approval mode 2020-06-16 15:28:44 +02:00
Alice Gaudon a15d496c53 Use formidable instead of multer 2020-06-14 21:47:18 +02:00
Alice Gaudon 6026037aa8 Add support for authenticating user against custom request-proof matching 2020-06-14 11:59:02 +02:00
Alice Gaudon e63b5d21fe Add left join to query builder 2020-06-14 11:43:31 +02:00
Alice Gaudon e2cb322001 Fix some models properties 2020-06-14 11:41:44 +02:00
Alice Gaudon 91b9e51a7d Wrap each migration in a transaction 2020-06-04 17:27:05 +02:00
Alice Gaudon 0970ff3116 Make model primaryKey dynamic (allows for composite primary keys) 2020-06-04 14:59:41 +02:00
Alice Gaudon 6a4b44035e Add MailController helper class 2020-06-03 14:14:42 +02:00
Alice Gaudon 8ccf073139 Add MagicLinkAuthController helper class 2020-06-03 13:44:47 +02:00
Alice Gaudon 384bd2fc17 Fix magic_link view data 2020-05-10 00:26:15 +02:00
Alice Gaudon 309344d1c0 Fix missing fields when creating a new MagicLink 2020-05-09 23:38:06 +02:00
Alice Gaudon e574b6e778 Add magic links 2020-05-09 23:23:19 +02:00
Alice Gaudon 26fdc94e9b Add UserEmail.fromUser() 2020-05-05 17:17:29 +02:00
Alice Gaudon 49fc92df5c Add UserEmail.getMainFromUser 2020-04-25 16:09:13 +02:00
Alice Gaudon 8882df4c0d Improve verbosity of auth error 2020-04-25 16:08:20 +02:00
Alice Gaudon 0207ad5001 Add register callback to optionally save more models 2020-04-25 09:36:20 +02:00
Alice Gaudon faeafbd68d Pass session to auth methods 2020-04-25 09:35:49 +02:00
Alice Gaudon ad20894565 Add auth utils parts 2020-04-24 12:34:41 +02:00