38 Commits

Author SHA1 Message Date
78e06756e2 feat: #20 add email in JWT claims 2022-11-29 13:42:46 +00:00
8d3651d6fc add http method validation on each route + add pubkey tests 2022-11-19 15:53:31 +00:00
1d2924b7ef feat(log): display warning in log if body parsing failed 2022-11-19 14:52:59 +00:00
91e80cfbf4 feat(jwt): #16 add a route to get the public key 2022-11-19 14:48:22 +00:00
5a638fd354 improv: fix doc in config.rs (#18) 2022-11-07 10:50:18 +00:00
17a098ef89 improv: replace eprintln with logger (#18) + fix mod documentation 2022-11-07 10:47:45 +00:00
45c9112af2 improv: add a logger (#18) + log client IP (#19) 2022-11-07 10:28:58 +00:00
b73add00c5 feat: #13 impl the JWT validation + some fixes 2022-10-14 14:45:03 +00:00
baa8595a4a fix doc + set route target in const 2022-10-14 10:45:32 +00:00
7336933642 bug: #15 fix fragmented TCPStream + spawn a tokio task on each connection 2022-10-14 10:37:40 +00:00
6166310283 refactor GET handler + impl JWTSigner 2022-10-13 16:06:27 +00:00
7073a4b88e improve HTTPResponse to include custom HTTPMessage 2022-10-13 12:20:30 +00:00
808cd3ee77 impl an HTTPMessage corresponding to the JSON response body 2022-10-13 10:33:11 +00:00
88c2e99aa8 move Config into its own module
cargo-fmt
2022-10-13 08:57:57 +00:00
55d524ea1b feat: #11 impl config (#9) + set JWT with asymmetric signatures 2022-10-12 14:51:24 +00:00
72d1fba8f4 feat: #11 impl JWT + add associated tests 2022-10-10 17:22:36 +00:00
71e3db0857 feat: #12 add async block in handlers (more readable) + fix tests 2022-10-10 14:59:29 +00:00
53b5c7a65f feat: #12 impl router for get target + clean the code 2022-10-07 15:57:51 +00:00
df38268566 feat: #12 start impl router 2022-10-06 16:51:51 +00:00
495d57c403 feat: #12 remove rename handlers mod into http 2022-10-06 15:40:35 +00:00
13b515c9c7 #8 update the doc 2022-10-03 15:34:37 +00:00
384e868501 #8 return a 403 if credentials are invalid + adjust corresponding test 2022-10-03 15:09:44 +00:00
73059c724f feat: #8 parse store file content and add test 2022-09-29 16:27:45 +00:00
8bf503df14 feat: #8 impl a credentials store 2022-09-29 14:25:38 +00:00
2c7418f333 feat: #2 impl an HTTPResponse + update tests 2022-09-20 09:07:23 +00:00
35cc483774 remove debug print + add print when server is ready 2022-09-19 15:20:04 +00:00
65e188bcf8 improv: #5 accept http 1.0 request version 2022-09-19 14:10:28 +01:00
617c084782 improv: #5 handle the request and return a response (useful for tests) 2022-09-19 10:51:30 +01:00
0a76efdc64 improv: #5 use tokio crate to handle incoming conn async 2022-09-15 18:10:10 +01:00
73f3e3ccec bug: #4 fix HTTP request parsing 2022-09-15 09:40:32 +01:00
5fc2a07bce feat: #3 add a target and http version validator 2022-09-14 18:00:12 +01:00
9f0dc6e6c5 feat: #3 add a method validator 2022-09-14 11:12:04 +01:00
6e994f1b90 impl more robust test for HTTP Request 2022-09-13 17:17:09 +01:00
ce7e49af47 feat: #1 rework on http request parser and include HTTPBody in HTTPRequest 2022-09-09 16:58:10 +01:00
e0d72b08cf feat: #1 impl an http body parser 2022-09-09 14:02:16 +01:00
3afe437143 feat: #1 add HTTPStartLine struct to parse request start line + some fixes 2022-09-09 11:08:35 +01:00
81d9b0f38d add a request handler 2022-09-08 10:45:58 +01:00
f7a7cddde5 init repository 2022-09-08 08:42:26 +01:00