Laura Hausmann
afe62b0aab
[sln] Code cleanup
2024-09-13 21:44:31 +02:00
Kopper
7cd5f0776b
[backend/akko-client] Cleanup and reformat
2024-09-13 17:30:05 +02:00
Kopper
0cb2e9e9f3
[backend/akko-client] Expose accurate upload limits
2024-09-13 17:30:05 +02:00
Kopper
4f605a503a
[backend/akko-client] Expose features on nodeinfo as well
...
Akkoma-FE seems to use this one for it's own feature detection
2024-09-13 17:30:05 +02:00
Kopper
1bac67cd06
[backend/akko-client] Stub out just enough to allow Akkoma-FE to start
2024-09-13 17:30:05 +02:00
Laura Hausmann
4be51a0cad
[backend/federation] Fix friendica compatibility
2024-08-17 23:07:58 +02:00
Laura Hausmann
173fbfb835
[backend/asp] Return error responses as HTML/XML/JSON depending on accept header
2024-08-16 01:00:43 +02:00
Laura Hausmann
1637064d60
[backend/federation] Deserialize HostMetaResponse as an object when content type is application/xrd+xml
2024-08-14 20:23:53 +02:00
Laura Hausmann
192f3f0312
[backend/federation] Reuse XmlSerializer in WebFingerService
2024-08-14 20:16:28 +02:00
Laura Hausmann
28f89f8a18
[backend/federation] Use XmlReader for deserializing untrusted XML input
2024-08-14 16:24:16 +02:00
Laura Hausmann
92f957a536
[backend/federation] Use content negotiation for host-meta responses
2024-08-14 03:23:25 +02:00
Laura Hausmann
b37f02846b
[backend/federation] Add support for returning xrd+xml WebFinger responses for local users
2024-08-14 02:01:56 +02:00
Laura Hausmann
14720808db
[backend/federation] Add support for deserializing xrd+xml WebFinger responses (ISH-456)
...
This fixes federation with Hubzilla.
2024-08-14 02:01:56 +02:00
Laura Hausmann
c86b2e192a
[backend/federation] Improve WebFinger host-meta handling
2024-08-14 01:41:29 +02:00
Laura Hausmann
49f5828a59
[backend] Code cleanup
2024-07-11 17:46:39 +02:00
Laura Hausmann
c67984c411
[backend] Manually reformat difficult-to-read switch expressions that got hard wrapped
2024-07-11 17:46:34 +02:00
Laura Hausmann
91acb8ed9e
[backend/federation] Add edition to nodeinfo response
2024-07-10 18:11:17 +02:00
Laura Hausmann
91b5021e4c
[shared] Refactor assembly version info
...
Because our frontend assembly now also knows its version, we no longer have to rely on meta tags to pass the version on to the frontend.
Since the HTML skeleton no longer includes version information, the nodeinfo response has been amended with the now-absent properties.
2024-07-09 21:50:06 +02:00
Laura Hausmann
f724a55901
[backend/core] Improve logging
2024-06-22 01:17:40 +02:00
Laura Hausmann
28414a17fc
[backend/federation] Don't run webfinger validation passes when host matches with the previous step
...
Since queries against resources on the same domain would end up querying the exact same endpoint, these checks are redundant and do not add any security benefits.
2024-04-19 01:37:30 +02:00
Laura Hausmann
f185a061dc
[backend/federation] Improve local instance detection in WebFingerService
2024-04-19 01:21:12 +02:00
Laura Hausmann
0833cf49d2
[backend/federation] Fall back to JRD during host-meta step of the WebFinger process (ISH-162)
2024-03-12 05:45:15 +01:00
Laura Hausmann
46b60c8779
[backend/federation] Update instance metadata in background when activities are delivered / received (ISH-8)
2024-02-26 22:18:27 +01:00
Laura Hausmann
f22c4a7c32
[backend/core] Improve error handling in code paths that try to resolve a deleted remote user
2024-02-21 19:04:46 +01:00
Laura Hausmann
1c8df9879d
[backend/core] Fix long application exit times by passing IHostApplicationLifetime.ApplicationStopping to long-running awaits
2024-02-21 03:50:38 +01:00
Laura Hausmann
907f7ed55c
[backend] Code cleanup
2024-02-20 19:59:38 +01:00
Laura Hausmann
98bdf9ca3c
[backend/core] Make HttpClient timeout after 30s (instead of 100s) normally, and after 10s for WebFinger
2024-02-18 05:36:47 +01:00
Laura Hausmann
d4e1d92771
[backend] Code cleanup: switch to BSD braces style, tweak code style
2024-02-17 02:31:00 +01:00
Laura Hausmann
b5bfc9a080
[backend/webfinger] Catch errors in GetWebFingerTemplateFromHostMetaAsync
2024-02-07 23:11:32 +01:00
Thomas May
6845b7217c
[backend] Ensure HttpClient is used asynchronously in WebFingerService
...
Reviewed-on: https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/pulls/5
Co-authored-by: Thomas May <wamwoowam@gmail.com>
Co-committed-by: Thomas May <wamwoowam@gmail.com>
2024-02-06 18:07:35 +01:00
Laura Hausmann
cb749c94e6
[backend] Ignore WebFinger failures with response code 410 Gone
2024-02-05 20:29:11 +01:00
Laura Hausmann
bd4c809449
Improve WebFinger error handling
2024-01-28 23:10:18 +01:00
Laura Hausmann
dc45ba8adc
Catch http errors early in WebFingerService
2024-01-28 23:03:09 +01:00
Laura Hausmann
626b267692
All methods that return a Task should end in Async
2024-01-28 22:21:58 +01:00
Laura Hausmann
e72a25db3c
Clean up unused references
2024-01-25 03:46:11 +01:00
Laura Hausmann
5569fe061f
Rename CustomException to GracefulException
2024-01-24 19:14:01 +01:00
Laura Hausmann
bb365ddc66
Improve & refactor exception handling
2024-01-24 18:58:19 +01:00
Laura Hausmann
f15fd9cc79
Implement exception handler
2024-01-24 04:11:56 +01:00
Laura Hausmann
068fe25d9d
Implement nodeinfo
2024-01-23 23:43:34 +01:00
Laura Hausmann
e77da0f91d
Implement .well-known/host-meta and .well-known/webfinger
2024-01-23 21:02:18 +01:00
Laura Hausmann
ae89337a2a
Refactor WebFinger -> WebFingerService
2024-01-13 19:46:47 +01:00
Laura Hausmann
eace0cb0de
Implement basic UserService functions
2024-01-12 20:20:16 +01:00
Laura Hausmann
bb1f4e6e27
Fix NormalizeQuery
2024-01-12 19:25:32 +01:00
Laura Hausmann
8bd049cc94
Finish up user resolver work
2024-01-12 19:13:01 +01:00
Laura Hausmann
80d6147757
Implement DI for backend services
2024-01-12 17:17:17 +01:00
Laura Hausmann
6ec6a43e1c
WIP: UserResolver
2024-01-09 20:00:54 +01:00
Laura Hausmann
ad7ca2935f
Add WebFinger implementation
2024-01-09 18:54:38 +01:00