Commit Graph

37 Commits

Author SHA1 Message Date
Valentin Tolmer
9dd579e32e model: move User and Group definition to backend 2021-08-31 20:32:55 +02:00
Valentin Tolmer
641018ff56 model: remove AddUserToGroupRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
54f973e349 model: remove CreateGroupRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
4af60e5668 model: remove DeleteUserRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
0bcabc7d0c model: remove CreateUserRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
0dd05e5771 model: inline the UserDetailsRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
cd91b4d3ac api: inline the ListUsersRequest 2021-08-31 20:32:55 +02:00
Valentin Tolmer
651adbe3c8 model: Inline the BindRequest in the backend 2021-08-31 20:32:55 +02:00
Valentin Tolmer
0ecd9ed263 Migrate datetimes to UTC 2021-08-30 09:27:00 +02:00
Valentin Tolmer
5a5db13cc2 Add a request message for user details 2021-07-05 13:41:36 +02:00
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
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
0a761ff11f Create a workspace for the packages 2021-06-23 11:13:05 +02:00
Valentin Tolmer
2f7019433d Fix clippy warnings 2021-06-23 10:57:34 +02:00
Valentin Tolmer
7e6c6eace6 Add messages for the OPAQUE protocol 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
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
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
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
d5cb53ae8a Implement refresh tokens 2021-05-20 17:40:30 +02:00
Valentin Tolmer
da4009b0b7 Implement Default for User 2021-05-14 10:30:58 +02:00
Valentin Tolmer
e0bcb58d36 Tidy up dependencies 2021-05-14 09:24:23 +02:00
Valentin Tolmer
a15d970725 Move the JWTClaims to the model 2021-05-13 19:32:29 +02:00
Valentin Tolmer
e1047124fa Fine-tune passing errors from the server to the client 2021-05-10 10:21:24 +02:00
Valentin Tolmer
8dd55195f5 Add a handler for the /api/users endpoint 2021-05-09 12:06:58 +02:00
Valentin Tolmer
4ae94839f2 Setup a basic API route 2021-05-09 11:52:53 +02:00
Valentin Tolmer
cace6eb135 Add sqlx as conditional dependency to the model
That way, we can use query_as
2021-05-09 10:10:17 +02:00
Valentin Tolmer
c58459547b Split the crate in 3, introduce JS frontend 2021-05-08 11:34:55 +02:00