Commit Graph

61 Commits

Author SHA1 Message Date
Valentin Tolmer
2f7019433d Fix clippy warnings 2021-06-23 10:57:34 +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
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
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
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
ca48de542b Add a API endpoint to create a user 2021-05-30 18:26:14 +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
eb5c48f030 Add a DB cleaner cron job 2021-05-25 10:39:09 +02:00
Valentin Tolmer
054f970f91 Make logout a post request, fix cookie path 2021-05-23 17:06:43 +02:00
Valentin Tolmer
28b7be0500 Hash refesh tokens earlier 2021-05-23 16:26:24 +02:00
Valentin Tolmer
10404abbb0 Implement server-side logout 2021-05-23 16:20:26 +02:00
Valentin Tolmer
28a941924e Split big files into little ones 2021-05-20 19:18:15 +02:00
Valentin Tolmer
9f1feb3b11 Change auth handlers to return an HttpResponse 2021-05-20 17:46:36 +02:00
Valentin Tolmer
6cb06b0e9f Change the authentication address to /auth 2021-05-20 17:41:30 +02:00
Valentin Tolmer
d5cb53ae8a Implement refresh tokens 2021-05-20 17:40:30 +02:00
Valentin Tolmer
312d9b7a6f Mark cookies as sameSite=Strict 2021-05-19 18:08:26 +02:00
Valentin Tolmer
e90ef2737c Add tests for tcp handlers 2021-05-14 10:30:58 +02:00
Valentin Tolmer
f19a4b36de Default the web server to returning index.html 2021-05-14 10:30:58 +02:00
Valentin Tolmer
e524fb0f55 clippy: fix warnings 2021-05-14 10:30:55 +02:00
Valentin Tolmer
e431c40475 Remove user_id cookie
We can't read it from JS anyway
2021-05-14 09:24:14 +02:00
Valentin Tolmer
a15d970725 Move the JWTClaims to the model 2021-05-13 19:32:29 +02:00
Valentin Tolmer
b49a03fd87 Translate the LDAP DN into user IDs 2021-05-13 19:31:37 +02:00
Valentin Tolmer
7e76d3aae2 Implement server-side JWT generation and checks 2021-05-12 20:53:46 +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
5abff453b9 clippy fixes 2021-05-10 09:34:29 +02:00
Valentin Tolmer
c33948ccc2 style 2021-05-09 13:29:12 +02:00
Valentin Tolmer
2416eede6f Add error message when receiving a faulty request 2021-05-09 13:26:28 +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
4091d21277 Setup the routes for the static files 2021-05-09 11:06:23 +02:00
Valentin Tolmer
9dd94f12a6 Fix ldap handler test after field resolution 2021-05-09 10:10:54 +02:00
Valentin Tolmer
f8f642183e Replace the echo server with an HTTP server 2021-05-08 15:52:08 +02:00
Valentin Tolmer
9459f53a13 Map ldap fields to internal fields 2021-04-14 21:22:08 +02:00
Valentin Tolmer
f68c45b1c3 Switch the main DB to sqlite 2021-04-12 16:06:14 +02:00
Valentin Tolmer
71045b08fe Add tests for bind in the handler 2021-04-11 22:01:24 +02:00
Valentin Tolmer
9f56fd02cf Create SQL tables with a query builder 2021-04-11 16:49:06 +02:00
Valentin Tolmer
bfd7730d55 Add support for basic ldap filters 2021-04-07 20:55:23 +02:00
Valentin Tolmer
6abe94af13 Add support for non-admin bind 2021-04-07 20:14:21 +02:00
Valentin Tolmer
31e8998ac3 Add attribute list handling
Also, fix various clippy warnings
2021-03-22 09:59:58 +01:00
Valentin Tolmer
cda2bcacc3 Add ability to list users with an LDAP search request 2021-03-16 18:27:31 +01:00
Valentin Tolmer
03e6afda69 Misc cleanup 2021-03-12 17:00:51 +01:00
Valentin Tolmer
86b89a00cc Separate ldap_handler, add tests 2021-03-11 10:50:15 +01:00