Commit Graph

371 Commits

Author SHA1 Message Date
nazeh
dc01377d09 feat: publish HTTPS port even in testnet, and use testnet in request binary 2025-01-08 12:33:46 +03:00
nazeh
61c532fe85 chore:published @synonymdev/pubky@0.4.0-rc1 2025-01-07 08:53:33 +03:00
nazeh
9b7c7c6352 feat: update to pkarr v3-rc1 and mainline v5-rc1 2025-01-06 10:00:47 +03:00
nazeh
ccbd3ff2f9 feat(js): pass all unit tests 2024-12-22 15:41:00 +03:00
nazeh
4ccb06006a fix(homeserver): always get sessions from Cookies instead of manually from headers 2024-12-22 13:08:07 +03:00
nazeh
bcb8d39088 feat(homeserver): remove EntryPath extractor and add Authz and PubkyHost layers 2024-12-22 12:03:06 +03:00
nazeh
96be5818a7 feat(pubky): add handle_http_error! macro 2024-12-20 13:50:59 +03:00
nazeh
fa2a7d2738 feat(homeserver): use full public key as cookie name 2024-12-20 13:00:53 +03:00
nazeh
738bff1ae1 feat(homeserver): add PubkyHost and Authz layers 2024-12-20 11:30:58 +03:00
nazeh
3cfe6567f0 feat(homeserver): replace session_id with the first 8 bytes of a key 2024-12-19 16:10:31 +03:00
nazeh
0c1326c2c7 feat(homeserver): remove public key in path endpoints 2024-12-19 13:42:53 +03:00
nazeh
daa06b6453 fix(js): send correct pubky-host header 2024-12-19 13:27:25 +03:00
Nuh
f840ce3e43 Merge branch 'main' into dev 2024-12-18 11:16:48 +03:00
nazeh
f42797a234 feat(js): pass all unit tests 2024-12-18 00:16:49 +03:00
nazeh
992607a7a7 feat(homeserver): add http relay in homeserver testnet for js testing 2024-12-17 18:00:52 +03:00
nazeh
de7d34eca1 feat(http-relay): add http relay crate to help with local testing 2024-12-17 13:36:05 +03:00
nazeh
b4ef0ca810 feat(js): basic auth with pubky-host header 2024-12-16 13:17:55 +03:00
nazeh
6e886f0180 fix(js): replace pubky:// with https:// in transform_url 2024-12-16 11:04:39 +03:00
nazeh
4c6bc9d13d test(homeserver): add domain:localhost in unit tests 2024-12-15 22:52:48 +03:00
nazeh
1c0ff6c028 feat(js): add logging in wasm and setLogLevel function 2024-12-15 16:17:12 +03:00
nazeh
6262bb75cd feat(homeserver,js): connect to testnet from js 2024-12-15 15:14:12 +03:00
nazeh
c97e63ac88 feat(js): update error handling after removing crate::error 2024-12-14 20:39:08 +03:00
nazeh
d0f2ee7139 feat(pubky): remove crate::errors.rs and use anyhow 2024-12-14 20:11:54 +03:00
nazeh
453aa40d88 fix(pubky): fix authz test with in process http relay 2024-12-14 16:37:58 +03:00
nazeh
8a799a27e3 feat(common): add granular crypto errors 2024-12-14 16:37:23 +03:00
nazeh
3ebdeff354 feat(homeserver): use Pkarr Relay in testnet and new Config simplifications 2024-12-14 12:48:53 +03:00
Nuh
f306f33a34 Merge pull request #60 from pubky/fix/propagate-non-2xx-http-errors
fix: return an error for non-2xx responses using error_for_status()
2024-12-12 00:38:38 +03:00
coreyphillips
980bee2041 style: fix indentation in inner_send_auth_token 2024-12-11 16:09:34 -05:00
coreyphillips
bfc18502ce fix: return an error for non-2xx responses using error_for_status()
Previously, the request function returned Ok(()) even if the
HTTP response status was an error (4xx/5xx). By adding
`response.error_for_status()?`, we correctly propagate
HTTP errors rather than masking them, ensuring that timeouts and
other non-2xx status codes produce an error as expected.
2024-12-11 15:50:28 -05:00
nazeh
1a30f7d62d chore: update dependencies 2024-12-11 14:33:28 +03:00
nazeh
da2cc2a344 feat(homeserver): add http server as well as https 2024-12-03 16:37:55 +03:00
nazeh
1348a18401 feat(homeserver): remove pkarr endpoints in HomeserverCore 2024-12-03 16:14:59 +03:00
nazeh
8c40cd2ddf refactor(homeserver): separate the core and io modules 2024-12-03 16:01:44 +03:00
nazeh
6a41b490f0 feat(homeserver): mark unsafe methods caused by LMDB 2024-12-03 14:20:48 +03:00
nazeh
628049984e feat(pubky): update pkarr and use anyhow 2024-12-03 12:02:26 +03:00
nazeh
b1bef6aa3e wip(js): migrate wasm bindings to support pubky in host 2024-11-26 19:14:00 +03:00
nazeh
6f64831ae7 feat(pubky): pass all unit tests after using pubky in host 2024-11-26 17:46:48 +03:00
nazeh
9b5a4f98f2 feat(homeserver): separate core to simplify testing 2024-11-26 17:45:55 +03:00
nazeh
c088388717 fix(pubky): fix signup url 2024-11-26 14:00:34 +03:00
nazeh
e6f7fb3347 feat(pubky): add an icann reqwest client 2024-11-26 13:36:16 +03:00
nazeh
c9ae34584c feat(pubky): add TLS support for homeserver 2024-11-26 13:04:19 +03:00
nazeh
bb2799e579 fix: clippy 2024-11-25 18:31:00 +03:00
nazeh
1993a73d6d feat(pubky): add custom cookie jar .. requires https 2024-11-25 18:24:34 +03:00
nazeh
6109df3d43 feat(pubky): update HEAD, GET, PUT, and DELETE for pub/ endpoints to use hostnames 2024-11-24 21:26:38 +03:00
nazeh
05cad66366 feat(pubky): support GET /pub/*path for native urls 2024-11-21 22:44:52 +03:00
Nuh
857ab88152 Merge pull request #58 from pubky/catch-21/update-dockerfile
Update Dockerfile
2024-11-18 14:53:55 +03:00
James
1a8dc0ab91 Update Dockerfile
Fix binary name in Dockerfile
2024-11-18 11:48:19 +00:00
Nuh
7a0ed55c64 docs: Fix formatting in auth.md 2024-11-16 11:26:12 +03:00
nazeh
d3367096d6 feat(pubky): use Pkarr v3 endpoint resolvers in Client::request 2024-11-14 17:37:48 +03:00
nazeh
5972b48316 feat(pubky): rename PubkyClient to Client 2024-11-14 15:30:01 +03:00