Commit Graph

32 Commits

Author SHA1 Message Date
Alice Gaudon 7ccd335649 Move route building to common subproject, fix Time export 2021-06-01 14:34:10 +02:00
Alice Gaudon 82ab0b963c Switch to esm and add import auto format 2021-05-03 20:52:52 +02:00
Alice Gaudon 05069b15d8 Properly use promises in ViewEngine.render(), use ViewEngine for mail and add NunjucksViewEngine 2021-04-28 17:02:49 +02:00
Alice Gaudon cfc632ba1a Approval mode: revoke unapproved users auth proofs
Also add tests for auth approval mode
2021-04-22 18:01:13 +02:00
Alice Gaudon caae753d74 Allow users to change their username every configurable period of time
Closes #22
2021-02-23 17:43:11 +01:00
Alice Gaudon 8a25f214ab AuthGuard: always provide a string to pending account mail username 2021-01-25 14:37:50 +01:00
Alice Gaudon f1a8a4ba07 Express.d.ts: normalize session fields case 2021-01-25 10:53:43 +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 784f2c976c Rename base_url setting to public_url 2021-01-21 17:13:05 +01:00
Alice Gaudon 87b4facea0 Upgrade dependencies and update to express session new typings 2020-12-04 15:24:22 +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 d741517cb9 AuthGuard: add separate before and after registration callbacks 2020-11-04 11:55:34 +01:00
Alice Gaudon 4d0c714dbd Render emails using NunjucksComponent's environment 2020-11-03 10:29:36 +01:00
Alice Gaudon 79d704083a Add many eslint rules and fix all linting issues 2020-09-28 14:15:22 +02:00
Alice Gaudon b736f5f6cb Improve middleware definition and cleanup code 2020-09-25 22:15:57 +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 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 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 f127abbc74 Finish promoting email views and add backend controller 2020-07-20 17:32:32 +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 6026037aa8 Add support for authenticating user against custom request-proof matching 2020-06-14 11:59:02 +02:00
Alice Gaudon 0970ff3116 Make model primaryKey dynamic (allows for composite primary keys) 2020-06-04 14:59:41 +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