Commit Graph

  • 65f0dfed84 Fix dockerfile start command Valentin Tolmer 2021-07-01 11:43:57 +02:00
  • 8e049c9e54 Add a docker image Valentin Tolmer 2021-06-30 16:54:33 +02:00
  • e09c73efce Register clients' passwords using OPAQUE Valentin Tolmer 2021-06-24 18:23:23 +02:00
  • 8b73de0df7 Update opaque and implement it without DB Valentin Tolmer 2021-06-23 20:33:36 +02:00
  • f12abb35d3 Fix workflow to use the workspace Valentin Tolmer 2021-06-23 11:13:18 +02:00
  • 0a761ff11f Create a workspace for the packages Valentin Tolmer 2021-06-23 11:13:05 +02:00
  • 97aab86e8e Add clippy and fmt to the workflow Valentin Tolmer 2021-06-23 10:57:43 +02:00
  • 2f7019433d Fix clippy warnings Valentin Tolmer 2021-06-23 10:57:34 +02:00
  • eec0903052 Refactor API client Valentin Tolmer 2021-06-23 10:11:32 +02:00
  • 659eab3706 Implement opaque login flow in the client Valentin Tolmer 2021-06-23 09:40:04 +02:00
  • 4d68a2a015 Add TCP handlers for opaque protocol Valentin Tolmer 2021-06-21 09:24:49 +02:00
  • 7be0e420d4 Add a handler for OPAQUE messages Valentin Tolmer 2021-06-16 22:04:11 +02:00
  • f6372c7e02 Add the OPAQUE tables to the cleanup cron Valentin Tolmer 2021-06-16 19:28:42 +02:00
  • 4bc48a064d Create SQL tables for the temporary OPAQUE data Valentin Tolmer 2021-06-16 19:22:02 +02:00
  • 7e6c6eace6 Add messages for the OPAQUE protocol Valentin Tolmer 2021-06-16 19:12:41 +02:00
  • b5c7e3b0d7 clippy: fix lint warning Valentin Tolmer 2021-06-15 23:11:02 +02:00
  • c3bbcce6a3 Simplify KeyPair handling Valentin Tolmer 2021-06-15 23:07:22 +02:00
  • f918debc2e Simplify opaque types Valentin Tolmer 2021-06-15 10:12:41 +02:00
  • 973fac4bb8 Make passwords optional when registering a new user Valentin Tolmer 2021-06-14 16:32:10 +02:00
  • 3c916a2530 Implement password checking using opaque Valentin Tolmer 2021-06-14 16:02:36 +02:00
  • 86bfd37b70 Opaque: use argon2 as slow hash Valentin Tolmer 2021-06-08 23:24:33 +02:00
  • 973fa40dd1 Add OPAQUE implementation Valentin Tolmer 2021-06-08 22:23:46 +02:00
  • d5f84cd588 Add cargo.lock and fix some dependencies Valentin Tolmer 2021-06-22 17:27:43 +02:00
  • 0d8e317490 build.sh: Detect local installs of rollup and improve error messages Valentin Tolmer 2021-06-22 15:32:20 +02:00
  • 0469252277 Add Bootstrap CSS Valentin Tolmer 2021-06-08 18:48:27 +02:00
  • c48323e221 Improve the README Valentin Tolmer 2021-06-02 16:02:49 +02:00
  • 7465a6b93f Add a form to create users Valentin Tolmer 2021-06-01 17:30:57 +02:00
  • 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) Marcelin Dupraz 2021-05-30 21:11:13 +02:00
  • 48c4f1adbd Add action testing PRs nitnelave 2021-05-30 22:03:53 +02:00
  • a56fbd77e3 Force sqlx-core to be at 0.5.1 Valentin Tolmer 2021-05-30 19:27:54 +02:00
  • bb66532862 Fix sqlx dependency Valentin Tolmer 2021-05-30 19:16:34 +02:00
  • ca48de542b Add a API endpoint to create a user Valentin Tolmer 2021-05-30 18:26:14 +02:00
  • e3ff3b7b0a App: Display users in a table Valentin Tolmer 2021-05-30 17:51:28 +02:00
  • ac492f987d App: Various cleanups (clippy) Valentin Tolmer 2021-05-30 17:07:34 +02:00
  • c1cb5792fe Introduce a router for the app Valentin Tolmer 2021-05-30 17:02:09 +02:00
  • 6ebd18d1e0 Return not found when a cookie is empty Valentin Tolmer 2021-05-30 17:01:14 +02:00
  • 3f23f69fce Add the admin user to the admin group by default Valentin Tolmer 2021-05-26 19:22:41 +02:00
  • 352a7d90fc Add method to add users to groups Valentin Tolmer 2021-05-26 15:49:59 +02:00
  • b3c2f5edfc Add a method to create a group Valentin Tolmer 2021-05-26 15:42:02 +02:00
  • 8e369016da Create admin user by default Valentin Tolmer 2021-05-26 15:13:17 +02:00
  • 5a70f2ebc2 Add a method to create a user Valentin Tolmer 2021-05-26 08:43:31 +02:00
  • d1a42b178a Make display_name, first&last name optional Valentin Tolmer 2021-05-26 08:42:05 +02:00
  • e45cf1c2b5 Remove the dependency on the app Valentin Tolmer 2021-05-26 08:36:12 +02:00
  • eb5c48f030 Add a DB cleaner cron job Valentin Tolmer 2021-05-25 10:39:09 +02:00
  • 9899c6f5aa app: Refactor API calls Valentin Tolmer 2021-05-25 10:03:33 +02:00
  • e07efc9585 Implement client-side logout Valentin Tolmer 2021-05-23 17:07:02 +02:00
  • 054f970f91 Make logout a post request, fix cookie path Valentin Tolmer 2021-05-23 17:06:43 +02:00
  • cd84aff310 Better database errors Valentin Tolmer 2021-05-23 17:06:21 +02:00
  • 28b7be0500 Hash refesh tokens earlier Valentin Tolmer 2021-05-23 16:26:24 +02:00
  • 10404abbb0 Implement server-side logout Valentin Tolmer 2021-05-23 16:20:26 +02:00
  • 28a941924e Split big files into little ones Valentin Tolmer 2021-05-20 19:18:15 +02:00
  • 9f1feb3b11 Change auth handlers to return an HttpResponse Valentin Tolmer 2021-05-20 17:46:36 +02:00
  • 6cb06b0e9f Change the authentication address to /auth Valentin Tolmer 2021-05-20 17:41:30 +02:00
  • d5cb53ae8a Implement refresh tokens Valentin Tolmer 2021-05-20 17:40:30 +02:00
  • 312d9b7a6f Mark cookies as sameSite=Strict Valentin Tolmer 2021-05-19 18:08:26 +02:00
  • 4d9f554fe6 Implement logout Valentin Tolmer 2021-05-18 19:04:06 +02:00
  • d57cd1230c Turn the login form into a regular form Valentin Tolmer 2021-05-18 17:44:46 +02:00
  • 29b7f4b836 Remove folder placeholder Valentin Tolmer 2021-05-17 16:54:41 +02:00
  • 04dafe1f4a Remove outdated examples Valentin Tolmer 2021-05-16 17:20:28 +02:00
  • e90ef2737c Add tests for tcp handlers Valentin Tolmer 2021-05-14 10:30:29 +02:00
  • f19a4b36de Default the web server to returning index.html Valentin Tolmer 2021-05-14 10:23:12 +02:00
  • da4009b0b7 Implement Default for User Valentin Tolmer 2021-05-14 10:22:50 +02:00
  • 7970decb8e Replace field names by identifiers in SQL queries Valentin Tolmer 2021-05-14 10:22:26 +02:00
  • 2190ae3681 Forbid unsafe code Valentin Tolmer 2021-05-14 09:38:36 +02:00
  • e524fb0f55 clippy: fix warnings Valentin Tolmer 2021-05-14 09:28:15 +02:00
  • e0bcb58d36 Tidy up dependencies Valentin Tolmer 2021-05-14 09:15:37 +02:00
  • 2de589d05c app: implement login and authorization Valentin Tolmer 2021-05-13 19:33:57 +02:00
  • e431c40475 Remove user_id cookie Valentin Tolmer 2021-05-13 19:32:46 +02:00
  • a15d970725 Move the JWTClaims to the model Valentin Tolmer 2021-05-13 19:32:29 +02:00
  • b49a03fd87 Translate the LDAP DN into user IDs Valentin Tolmer 2021-05-13 19:31:37 +02:00
  • 7e76d3aae2 Implement server-side JWT generation and checks Valentin Tolmer 2021-05-12 20:42:15 +02:00
  • ccaa610b3c Add get_user_groups handler method Valentin Tolmer 2021-05-12 20:41:51 +02:00
  • 5615ef8e1f Split the user table into a sub-component Valentin Tolmer 2021-05-11 09:54:54 +02:00
  • e1047124fa Fine-tune passing errors from the server to the client Valentin Tolmer 2021-05-10 10:21:24 +02:00
  • 6b8cccede0 Introduce custom errors Valentin Tolmer 2021-05-10 09:34:38 +02:00
  • 5abff453b9 clippy fixes Valentin Tolmer 2021-05-10 09:33:33 +02:00
  • c33948ccc2 style Valentin Tolmer 2021-05-09 13:28:53 +02:00
  • 25027f7614 Add a method to fetch users from the client Valentin Tolmer 2021-05-09 13:26:50 +02:00
  • 2416eede6f Add error message when receiving a faulty request Valentin Tolmer 2021-05-09 13:26:28 +02:00
  • 8dd55195f5 Add a handler for the /api/users endpoint Valentin Tolmer 2021-05-09 12:06:58 +02:00
  • 4ae94839f2 Setup a basic API route Valentin Tolmer 2021-05-09 11:52:53 +02:00
  • 4091d21277 Setup the routes for the static files Valentin Tolmer 2021-05-09 11:06:23 +02:00
  • 9dd94f12a6 Fix ldap handler test after field resolution Valentin Tolmer 2021-05-09 10:10:54 +02:00
  • cace6eb135 Add sqlx as conditional dependency to the model Valentin Tolmer 2021-05-09 10:10:17 +02:00
  • f8f642183e Replace the echo server with an HTTP server Valentin Tolmer 2021-05-08 13:27:48 +02:00
  • d771293a43 Migrate deprecated create_if_not_exists Valentin Tolmer 2021-05-08 13:08:57 +02:00
  • f8951d3b82 Add index and main Valentin Tolmer 2021-05-08 12:00:52 +02:00
  • c58459547b Split the crate in 3, introduce JS frontend Valentin Tolmer 2021-05-08 11:34:55 +02:00
  • 9459f53a13 Map ldap fields to internal fields Valentin Tolmer 2021-04-14 21:22:08 +02:00
  • c48da8b758 Add ability to list groups and their users Valentin Tolmer 2021-04-14 20:52:38 +02:00
  • f198638f99 Add tests to the handler Valentin Tolmer 2021-04-13 19:07:51 +02:00
  • 81593c9f84 gitignore: add more sqlite patterns Valentin Tolmer 2021-04-13 19:06:52 +02:00
  • f68c45b1c3 Switch the main DB to sqlite Valentin Tolmer 2021-04-11 23:01:24 +02:00
  • a765d77b53 Centralize the definition of pool type Valentin Tolmer 2021-04-11 22:07:28 +02:00
  • 71045b08fe Add tests for bind in the handler Valentin Tolmer 2021-04-11 22:01:24 +02:00
  • 49404b24d7 Implement user listing with filters Valentin Tolmer 2021-04-11 21:30:52 +02:00
  • 9f56fd02cf Create SQL tables with a query builder Valentin Tolmer 2021-04-09 10:47:26 +02:00
  • bfd7730d55 Add support for basic ldap filters Valentin Tolmer 2021-04-07 20:55:23 +02:00
  • 6abe94af13 Add support for non-admin bind Valentin Tolmer 2021-04-07 20:14:21 +02:00
  • 31e8998ac3 Add attribute list handling Valentin Tolmer 2021-03-22 09:59:58 +01:00