Commit graph

31 commits

Author SHA1 Message Date
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
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
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
ae89337a2a
Refactor WebFinger -> WebFingerService 2024-01-13 19:46:47 +01:00