Commit Graph

25 Commits

Author SHA1 Message Date
Derrick Hammer d18be0acc8
refactor: move error helpers to controller.go 2023-06-07 13:17:49 -04:00
Derrick Hammer 98fd2a097e
refactor: move more response structs to response package 2023-06-07 13:17:11 -04:00
Derrick Hammer cfa7ceb2f4
fix: output error info 2023-06-07 13:12:37 -04:00
Derrick Hammer 2f7c31d53c
refactor: completely restructure validation. split request and respond structs to their own package 2023-06-07 13:04:38 -04:00
Derrick Hammer bfbf13a57d
refactor: use tryParseRequest 2023-06-07 08:50:29 -04:00
Derrick Hammer 9d843bffdb
refactor: use tryParseRequest 2023-06-07 08:49:07 -04:00
Derrick Hammer f3e43f522f
refactor: add validation for all auth request structs 2023-06-06 23:28:33 -04:00
Derrick Hammer dd8e5704c8
refactor: rename checkPubkey to CheckPubkeyValidator 2023-06-06 23:27:43 -04:00
Derrick Hammer 9bacd95c9d
refactor: move to ozzo-validation 2023-06-06 23:16:34 -04:00
Derrick Hammer 27e7ea7d7a
fix: PostPubkeyLogin should not preload any model 2023-06-06 22:28:58 -04:00
Derrick Hammer 09d53ffa76
fix: PostPubkeyLogin should be lowercasing the pubkey and signature 2023-06-06 22:28:40 -04:00
Derrick Hammer d680f0660f
fix: PostPubkeyChallenge should be lowercasing the pubkey for consistency 2023-06-06 22:28:17 -04:00
Derrick Hammer 36745bb55b
fix: PostPubkeyChallenge should be using ChallengeRequest 2023-06-06 22:27:34 -04:00
Derrick Hammer db3ba1f014
fix: PostPubkeyChallenge should not be checking email, but pubkey 2023-06-06 22:27:07 -04:00
Derrick Hammer c20dec0204
fix: abort if we don't have a password for the account, assume its pubkey only 2023-06-06 22:05:49 -04:00
Derrick Hammer def1b50cfc
fix: ensure we store the pubkey in lowercase 2023-06-06 22:04:59 -04:00
Derrick Hammer 38b76155af
feat: add a status endpoint and move cid validation to a utility method 2023-06-06 16:34:05 -04:00
Derrick Hammer 7845f95776
refactor: move logger to its own package 2023-05-22 19:05:53 -04:00
Derrick Hammer ed6220fc7d
refactor: optionally compare passed hash with computed one and reject if they don't match 2023-05-22 11:00:24 -04:00
Derrick Hammer bef2ed7431
refactor: add logging 2023-05-19 09:04:47 -04:00
Derrick Hammer aa702ffd02
refactor: move to new golang bao implementation 2023-05-17 09:52:25 -04:00
Derrick Hammer 673f7c6dfd
refactor: have Upload take both a io.ReaderSeeker and os.File and update usages based of if we are streaming a small file or handling a big one via filename 2023-05-15 15:47:46 -04:00
Derrick Hammer b44b12f85e
refactor: change download controller method to use a path argument and not a query 2023-05-10 15:09:18 -04:00
Derrick Hammer 73bc836cbc
refactor: change files controller to use new files service api 2023-05-10 14:40:29 -04:00
Derrick Hammer 8f3af2084c
refactor: rename services to controllers 2023-05-10 07:07:56 -04:00