Commit Graph

29 Commits

Author SHA1 Message Date
Joe Ardent 64474c8673 update tower_sessions, allow insecure cookies 2023-12-30 13:33:14 -08:00
Joe Ardent dd5ae09ab8 simplify auth and login 2023-12-24 16:21:55 -08:00
Joe Ardent e9e5436e02 Compute user digest on deserialization. 2023-12-23 10:01:51 -08:00
Joe Ardent dfbf605257 minor re-org and tidy 2023-12-18 16:48:54 -08:00
Joe Ardent eda946fa4c everything works 2023-12-17 17:38:22 -08:00
Joe Ardent 57eb4001ee almost works, still need to impl auth 2023-12-17 16:41:04 -08:00
Joe Ardent b8481dc106 finish the migration to julids 2023-07-28 16:15:27 -07:00
Joe Ardent 359a732a84 Fix the tests.
The test server had to be created in an async context or Hyper wouldn't run.
2023-07-21 15:15:47 -07:00
Joe Ardent 48308aa169 make db acquire sync; tests fail but app runs correctly 2023-07-18 17:37:24 -07:00
Joe Ardent 3532f3daf7 remove dbg output for login 2023-07-08 22:06:50 -07:00
Joe Ardent f58106ee36 checkpoint; logins broken somehow, maybe just from remote host 2023-07-04 12:22:17 -07:00
Joe Ardent 84d70336d3 rename some templates, lean in to big-endian IDs 2023-06-22 14:10:18 -07:00
Joe Ardent 656e6dceed add working ULID-based IDs for primary keys 2023-06-21 16:30:13 -07:00
Joe Ardent 8e54c6f99a more template renaming and tidying 2023-06-20 12:14:18 -07:00
Joe Ardent 8b1eef17f7 Simplify form input handling.
The form input values were coming to the handlers already-urldecoded, so no need to re-decode them.
2023-06-10 15:30:36 -07:00
Joe Ardent 9505266ef9 minor re-org and rename of main page template struct. 2023-06-08 09:16:38 -07:00
Joe Ardent 8d040ad368 Finish signup tests. 2023-06-03 15:45:19 -07:00
Joe Ardent 38a6cdeb84 backport test utils improvments to login tests 2023-06-03 13:58:37 -07:00
Joe Ardent 0f0d7f488f Add more test utils. 2023-06-03 10:11:07 -07:00
Joe Ardent 81d35e1661 Fix broken test and move helpers to test util module. 2023-06-02 17:32:48 -07:00
Joe Ardent 30169733a0 More login testing, added reference user factory fn. 2023-06-02 17:01:59 -07:00
Joe Ardent 569b19e837 Minor tweaks. 2023-06-02 14:15:13 -07:00
Joe Ardent 659bc0d008 Add tests for login/logout endpoints.
Changes in the test DB setup are there to support persistent in-memory DBs for testing.
2023-06-02 14:12:29 -07:00
Joe Ardent 6425dd4016 Add middleware to update `last_seen`. 2023-05-30 14:51:52 -07:00
Joe Ardent d2613b0ef9 End-to-end web-based signup, login, and logout flows work. 2023-05-29 14:25:50 -07:00
Joe Ardent 5de4b9994c stub out logout 2023-05-29 11:13:12 -07:00
Joe Ardent dbff72330e Adds working login route. 2023-05-28 17:55:16 -07:00
Joe Ardent 0f0a7583cd Move login stuff to own module. 2023-05-28 13:44:50 -07:00
Joe Ardent e5d66769dc rename modules for users 2023-05-28 13:31:45 -07:00