Commit Graph

275 Commits

Author SHA1 Message Date
Savanni D'Gerinel f2bbb4e720 Validate the session token with file uploads
File uploads now check the session token before continuing.

Resolves: https://www.pivotaltracker.com/story/show/186174680
2023-10-03 17:30:43 -04:00
Savanni D'Gerinel 09df915296 Validate the session token
A previous commit added authentication token checks. Auth tokens are replaced with session tokens, which can (and should) expire. This commit validates sessions, which now allows access to gated operations.
2023-10-03 17:04:35 -04:00
Savanni D'Gerinel 529f22f49e Add a CLI application for user management 2023-10-03 16:32:00 -04:00
Savanni D'Gerinel 1b161435df Split out a support library 2023-10-03 16:18:19 -04:00
Savanni D'Gerinel f3940111c4 Add session checks 2023-10-03 13:56:55 -04:00
Savanni D'Gerinel 0209f72a9b Add the ability to create and list users 2023-10-03 13:31:58 -04:00
Savanni D'Gerinel 2b1d010540 Create the initial database migration 2023-10-03 13:31:43 -04:00
Savanni D'Gerinel 00f76d4f4b Finish the auth handler and create app auth stubs 2023-10-03 11:28:09 -04:00
Savanni D'Gerinel 791adbb085 Set up authentication routes 2023-10-03 11:10:37 -04:00
Savanni D'Gerinel 2cabcc46aa Complete upload 2023-09-26 22:43:33 -04:00
Savanni D'Gerinel 3294262d8d Set up temperory working directories 2023-09-25 00:58:35 -04:00
Savanni D'Gerinel afa8134644 Correctly set up file ids from list_files 2023-09-25 00:17:34 -04:00
Savanni D'Gerinel f7012ee11a Refactor PathResolver so it cannot fail 2023-09-25 00:05:45 -04:00
Savanni D'Gerinel 759a4b6a1a Remove old test files 2023-09-24 23:52:44 -04:00
Savanni D'Gerinel 4fa3a89e08 Lots more refactoring :( 2023-09-24 23:52:29 -04:00
Savanni D'Gerinel 6c1fa7cc2f Clean up the filehandle logic 2023-09-24 12:08:09 -04:00
Savanni D'Gerinel b0641bf5e9 Add cool_asserts 2023-09-23 20:20:57 -04:00
Savanni D'Gerinel 98a07ce03e Provide a unified interface for the File and Thumbnail 2023-09-23 20:20:35 -04:00
Savanni D'Gerinel 809861a38e Load file by ID 2023-09-23 19:15:56 -04:00
Savanni D'Gerinel bda0caff95 Get thumbnail creation working again 2023-09-23 15:17:49 -04:00
Savanni D'Gerinel 90f9b80dd9 Add some tests to verify that a file can be added to the system
Still gutting a lot of the old code, but this MR focuses more on ensuring that a file can be added and that the metadata gets saved.
2023-09-22 23:43:45 -04:00
Savanni D'Gerinel 163e1e1de1 Add some testing for the PathResolver 2023-09-22 21:56:43 -04:00
Savanni D'Gerinel d658747202 Start ripping out lots of infrastructure
Much of the infrastructure is old and seems to be based on some assumptions about how Iron handled multipart posts. I don't understand how much of this works, so I'm slowly ripping parts out and rebuilding how the separation of concerns works.
2023-09-22 20:03:58 -04:00
Savanni D'Gerinel 8c099d0586 Set up the delete route
Sets up the delete route, including post-delete redirect back to the root.
Also adds logging.

Delete does not actually delete things yet.
2023-09-22 00:38:26 -04:00
Savanni D'Gerinel f440e6f7ad Refactor file and thumbnail serving to common code 2023-09-21 22:15:58 -04:00
Savanni D'Gerinel 1bb6bd78e6 Attempt to add etag caching 2023-09-21 00:00:09 -04:00
Savanni D'Gerinel f4b3e811fc Render thumbnails 2023-09-20 23:31:52 -04:00
Savanni D'Gerinel 56d7fae43c Update cargo.lock 2023-09-20 23:07:01 -04:00
Savanni D'Gerinel a02e335492 Swap from iron to warp and start rebuilding the app 2023-09-20 23:06:34 -04:00
Savanni D'Gerinel 75bfae02c4 Add orizentic and file-service to the build 2023-09-19 19:01:09 -04:00
Savanni D'Gerinel 81aa7410de Import a questionably refactored version of file-service 2023-09-19 18:55:53 -04:00
Savanni D'Gerinel 356395a503 Import orizentic 2023-09-19 18:31:30 -04:00
Savanni D'Gerinel d6c2a9519b Overhaul the sgf representation 2023-08-29 23:14:35 -04:00
Savanni D'Gerinel 7805a55322 Added the build scripts for kifu-gtk 2023-08-29 23:12:53 -04:00
Savanni D'Gerinel 1489121877 Get the width of the application back under control 2023-08-25 00:07:29 -04:00
Savanni D'Gerinel 562d4871a1 Create padding within the content view 2023-08-24 22:33:36 -04:00
Savanni D'Gerinel 16c8dcb682 Add a CSS stylesheet 2023-08-24 22:10:05 -04:00
Savanni D'Gerinel cc828c417a Change the layout/app_window to an ordinary object with necessary objects 2023-08-24 21:56:03 -04:00
Savanni D'Gerinel 784f3ff7f4 Be able to update the library path in the core 2023-08-24 20:52:27 -04:00
Savanni D'Gerinel 5439e2ac04 Set up a configuration UI 2023-08-24 20:24:41 -04:00
Savanni D'Gerinel 0bf6e079a2 Set up the configuration action 2023-08-23 17:51:51 -04:00
Savanni D'Gerinel 3998538e88 Set up the hamburger menu 2023-08-23 17:31:34 -04:00
Savanni D'Gerinel 793cd67218 Add a header bar and content field for applications 2023-08-23 15:57:09 -04:00
Savanni D'Gerinel ff13ff3c0e Update to a libadwaita app 2023-08-20 22:12:00 -04:00
Savanni D'Gerinel cc3ad372e6 Flip totally to a libadwaita program 2023-08-20 21:37:40 -04:00
Savanni D'Gerinel 3c063af525 Add the game result to the list of visible games 2023-08-20 13:17:54 -04:00
Savanni D'Gerinel aa64bf4c7e Remove the launch screen 2023-08-20 12:58:58 -04:00
Savanni D'Gerinel f75e0d4d65 Remove the library_view 2023-08-20 12:56:42 -04:00
Savanni D'Gerinel d8534a08eb Show the name of the game, and create one if it doesn't exist 2023-08-20 12:53:14 -04:00
Savanni D'Gerinel e5d0b7d20f Improve formatting. Rename GameDatabase to Library 2023-08-20 12:40:46 -04:00