Commit Graph

322 Commits

Author SHA1 Message Date
Valentin Tolmer
d891529da9 Add allow warnings for nonstandard macro braces
The warnings come from the macros of libraries that we use, so we can't
change them.
2021-07-05 10:10:27 +02:00
Valentin Tolmer
65f0dfed84 Fix dockerfile start command 2021-07-01 12:16:02 +02:00
Valentin Tolmer
8e049c9e54 Add a docker image 2021-06-30 17:22:32 +02:00
Valentin Tolmer
e09c73efce Register clients' passwords using OPAQUE 2021-06-25 10:10:55 +02:00
Valentin Tolmer
8b73de0df7 Update opaque and implement it without DB 2021-06-23 20:46:55 +02:00
Valentin Tolmer
f12abb35d3 Fix workflow to use the workspace 2021-06-23 11:13:18 +02:00
Valentin Tolmer
0a761ff11f Create a workspace for the packages 2021-06-23 11:13:05 +02:00
Valentin Tolmer
97aab86e8e Add clippy and fmt to the workflow 2021-06-23 10:57:43 +02:00
Valentin Tolmer
2f7019433d Fix clippy warnings 2021-06-23 10:57:34 +02:00
Valentin Tolmer
eec0903052 Refactor API client 2021-06-23 10:27:59 +02:00
Valentin Tolmer
659eab3706 Implement opaque login flow in the client 2021-06-23 10:27:59 +02:00
Valentin Tolmer
4d68a2a015 Add TCP handlers for opaque protocol 2021-06-23 10:27:59 +02:00
Valentin Tolmer
7be0e420d4 Add a handler for OPAQUE messages 2021-06-23 10:27:59 +02:00
Valentin Tolmer
f6372c7e02 Add the OPAQUE tables to the cleanup cron 2021-06-23 10:27:59 +02:00
Valentin Tolmer
4bc48a064d Create SQL tables for the temporary OPAQUE data 2021-06-23 10:27:59 +02:00
Valentin Tolmer
7e6c6eace6 Add messages for the OPAQUE protocol 2021-06-23 10:27:59 +02:00
Valentin Tolmer
b5c7e3b0d7 clippy: fix lint warning 2021-06-23 10:27:59 +02:00
Valentin Tolmer
c3bbcce6a3 Simplify KeyPair handling 2021-06-23 10:27:59 +02:00
Valentin Tolmer
f918debc2e Simplify opaque types 2021-06-23 10:27:59 +02:00
Valentin Tolmer
973fac4bb8 Make passwords optional when registering a new user 2021-06-23 10:27:59 +02:00
Valentin Tolmer
3c916a2530 Implement password checking using opaque 2021-06-23 10:27:59 +02:00
Valentin Tolmer
86bfd37b70 Opaque: use argon2 as slow hash 2021-06-23 10:27:59 +02:00
Valentin Tolmer
973fa40dd1 Add OPAQUE implementation 2021-06-23 10:27:59 +02:00
Valentin Tolmer
d5f84cd588 Add cargo.lock and fix some dependencies
Note that the auth_service handler has become less generic, but it's
enough for our purposes.
2021-06-22 17:27:43 +02:00
Valentin Tolmer
0d8e317490 build.sh: Detect local installs of rollup and improve error messages 2021-06-22 15:32:20 +02:00
Valentin Tolmer
0469252277 Add Bootstrap CSS 2021-06-08 18:48:27 +02:00
Valentin Tolmer
c48323e221 Improve the README 2021-06-02 16:04:13 +02:00
Valentin Tolmer
7465a6b93f Add a form to create users 2021-06-01 17:31:18 +02:00
Marcelin Dupraz
2a6d23203c Implementation of the delete_user_request.
Tests are barebones and are dependant of the list_users_request
(delete_user_request_test will fail if list_users_request fails)
2021-05-30 22:08:01 +02:00
nitnelave
48c4f1adbd
Add action testing PRs 2021-05-30 22:03:53 +02:00
Valentin Tolmer
a56fbd77e3 Force sqlx-core to be at 0.5.1 2021-05-30 19:27:54 +02:00
Valentin Tolmer
bb66532862 Fix sqlx dependency
0.5.5 seems to be broken
2021-05-30 19:16:34 +02:00
Valentin Tolmer
ca48de542b Add a API endpoint to create a user 2021-05-30 18:26:14 +02:00
Valentin Tolmer
e3ff3b7b0a App: Display users in a table 2021-05-30 17:51:28 +02:00
Valentin Tolmer
ac492f987d App: Various cleanups (clippy) 2021-05-30 17:07:34 +02:00
Valentin Tolmer
c1cb5792fe Introduce a router for the app 2021-05-30 17:02:09 +02:00
Valentin Tolmer
6ebd18d1e0 Return not found when a cookie is empty 2021-05-30 17:01:14 +02:00
Valentin Tolmer
3f23f69fce Add the admin user to the admin group by default 2021-05-26 19:22:41 +02:00
Valentin Tolmer
352a7d90fc Add method to add users to groups 2021-05-26 15:49:59 +02:00
Valentin Tolmer
b3c2f5edfc Add a method to create a group 2021-05-26 15:42:02 +02:00
Valentin Tolmer
8e369016da Create admin user by default 2021-05-26 15:13:17 +02:00
Valentin Tolmer
5a70f2ebc2 Add a method to create a user 2021-05-26 08:43:31 +02:00
Valentin Tolmer
d1a42b178a Make display_name, first&last name optional 2021-05-26 08:42:05 +02:00
Valentin Tolmer
e45cf1c2b5 Remove the dependency on the app 2021-05-26 08:36:12 +02:00
Valentin Tolmer
eb5c48f030 Add a DB cleaner cron job 2021-05-25 10:39:09 +02:00
Valentin Tolmer
9899c6f5aa app: Refactor API calls 2021-05-25 10:03:33 +02:00
Valentin Tolmer
e07efc9585 Implement client-side logout 2021-05-23 17:07:02 +02:00
Valentin Tolmer
054f970f91 Make logout a post request, fix cookie path 2021-05-23 17:06:43 +02:00
Valentin Tolmer
cd84aff310 Better database errors 2021-05-23 17:06:21 +02:00
Valentin Tolmer
28b7be0500 Hash refesh tokens earlier 2021-05-23 16:26:24 +02:00