Commit Graph

22 Commits

Author SHA1 Message Date
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