Derrick Hammer
|
1d019d905b
|
fix: use a type switch
|
2024-01-17 09:02:13 -05:00 |
Derrick Hammer
|
af71f68ea9
|
fix: needs to be uint64
|
2024-01-17 08:58:58 -05:00 |
Derrick Hammer
|
bf65e845f3
|
fix: access sub directly
|
2024-01-17 08:57:45 -05:00 |
Derrick Hammer
|
e9aa676d94
|
fix: use public key, not private
|
2024-01-17 08:53:10 -05:00 |
Derrick Hammer
|
224d7a636d
|
fix: need to check the decoded public key in hex format
|
2024-01-17 08:47:58 -05:00 |
Derrick Hammer
|
e31672aad0
|
feat: add support for checking the user account and storing in a new context
|
2024-01-17 08:43:32 -05:00 |
Derrick Hammer
|
4ae272205a
|
feat: add AccountExists method
|
2024-01-17 08:37:01 -05:00 |
Derrick Hammer
|
ae0bddf3d1
|
feat: add jwt auth middleware
|
2024-01-17 08:16:03 -05:00 |
Derrick Hammer
|
1054c52e2f
|
fix: if email is empty set to a dummy address based on the pubkey
|
2024-01-16 16:16:37 -05:00 |
Derrick Hammer
|
dd66f560ef
|
fix: make email optional
|
2024-01-16 16:15:50 -05:00 |
Derrick Hammer
|
d237b42314
|
fix: if pubkey isnt registered, error
|
2024-01-16 16:05:28 -05:00 |
Derrick Hammer
|
f8d0dc6787
|
fix: delete challenges after they have been used
|
2024-01-16 15:48:45 -05:00 |
Derrick Hammer
|
9cc05b3096
|
fix: wrong model
|
2024-01-16 15:42:42 -05:00 |
Derrick Hammer
|
6c34b383d7
|
fix: verify the response, not the challenge
|
2024-01-16 15:37:08 -05:00 |
Derrick Hammer
|
bc5957f881
|
fix: need to pass the pubkey without the prefix and encoded to hex
|
2024-01-16 15:30:00 -05:00 |
Derrick Hammer
|
accffade40
|
fix: update error handling
|
2024-01-16 15:26:57 -05:00 |
Derrick Hammer
|
f34f009f17
|
fix: key needs to be 33 bytes
|
2024-01-16 15:26:36 -05:00 |
Derrick Hammer
|
e1709a7910
|
fix: update error handling
|
2024-01-16 15:23:00 -05:00 |
Derrick Hammer
|
d74d29e2c5
|
fix: check that key is 33 bytes and is a ed25519
|
2024-01-16 15:22:48 -05:00 |
Derrick Hammer
|
09216e2817
|
fix: challenge needs to be base64url encoded
|
2024-01-16 15:12:05 -05:00 |
Derrick Hammer
|
db46fcd774
|
fix: check the challenge substring
|
2024-01-16 14:45:07 -05:00 |
Derrick Hammer
|
1b680dd399
|
fix: validate without key prefix
|
2024-01-16 14:43:26 -05:00 |
Derrick Hammer
|
dd5c6332f3
|
fix: response must be 65 bytes
|
2024-01-16 14:32:53 -05:00 |
Derrick Hammer
|
5d393c3915
|
fix: pubkey missing from challenge record
|
2024-01-16 14:22:16 -05:00 |
Derrick Hammer
|
3be1042def
|
fix: add S5Challenge to AutoMigrate
|
2024-01-16 14:18:36 -05:00 |
Derrick Hammer
|
56b99f3c14
|
dep: update libs5
|
2024-01-16 14:07:22 -05:00 |
Derrick Hammer
|
40479d8bb3
|
fix: wrong account paths
|
2024-01-16 13:57:33 -05:00 |
Derrick Hammer
|
ec9026c8b1
|
feat: implement AccountLogin
|
2024-01-16 13:56:25 -05:00 |
Derrick Hammer
|
eee1faab18
|
feat: implement AccountLoginChallenge
|
2024-01-16 13:51:03 -05:00 |
Derrick Hammer
|
17441ff674
|
refactor: use setAuthCookie helper
|
2024-01-16 13:38:10 -05:00 |
Derrick Hammer
|
891ca20a72
|
feat: implement AccountRegister, and switch to using structs for request/response
|
2024-01-16 13:32:47 -05:00 |
Derrick Hammer
|
2512a6bdaf
|
dep: add jwt, email-verifier, and bcrypt
|
2024-01-16 13:31:29 -05:00 |
Derrick Hammer
|
9ad8d70f09
|
feat: implement EmailExists, PubkeyExists, CreateAccount,AddPubkeyToAccount, LoginPassword, LoginPubkey
|
2024-01-16 13:30:36 -05:00 |
Derrick Hammer
|
1bbedecad9
|
refactor: remove username from user
|
2024-01-16 13:28:33 -05:00 |
Derrick Hammer
|
c4f0226d1a
|
refactor: re-implement s5 routes
|
2024-01-16 12:20:43 -05:00 |
Derrick Hammer
|
69b1938e87
|
feat: add AccountRegisterChallenge handler
|
2024-01-16 11:31:33 -05:00 |
Derrick Hammer
|
a62c6daa4a
|
feat: add S5 challenge model
|
2024-01-16 11:31:25 -05:00 |
Derrick Hammer
|
fb136234a9
|
dep: update libs5
|
2024-01-16 11:30:44 -05:00 |
Derrick Hammer
|
4b581d5879
|
dep: update libs5
|
2024-01-16 10:25:38 -05:00 |
Derrick Hammer
|
185269afea
|
feat: add upload create call
|
2024-01-16 02:01:18 -05:00 |
Derrick Hammer
|
cc5fadeef3
|
fix: remove debug line
|
2024-01-16 01:54:46 -05:00 |
Derrick Hammer
|
aa2ee9eee2
|
fix: handle both when IsError is true and when we have an error object
|
2024-01-16 01:36:19 -05:00 |
Derrick Hammer
|
d017b0741c
|
fix: use DatabaseService
|
2024-01-16 01:30:06 -05:00 |
Derrick Hammer
|
af4a2eed4a
|
fix: use Database not Db
|
2024-01-16 01:29:29 -05:00 |
Derrick Hammer
|
d36bf67e85
|
fix: remove duplicate Db getter
|
2024-01-16 01:29:17 -05:00 |
Derrick Hammer
|
c2075989fa
|
fix: need a Database and DatabaseService getter, and a getter on Database
|
2024-01-16 01:24:47 -05:00 |
Derrick Hammer
|
0c5827ce0b
|
Revert "fix: try to deref?"
This reverts commit a19af267cf .
|
2024-01-16 01:17:46 -05:00 |
Derrick Hammer
|
a19af267cf
|
fix: try to deref?
|
2024-01-16 01:14:42 -05:00 |
Derrick Hammer
|
58f734d3b3
|
fix: use a 32 byte hash, not 64
|
2024-01-16 01:08:39 -05:00 |
Derrick Hammer
|
276719f47f
|
feat: handle existing files
|
2024-01-16 01:05:09 -05:00 |