Commit 6017a39
committed
Add HTTP signatures to WebFinger requests
Some ActivityPub implementations like GoToSocial require HTTP signatures
for all requests, including WebFinger lookups. Previously, WebFinger
requests were made without signatures, causing 401 Unauthorized errors
when trying to resolve mentions for users on these platforms.
This updates Webfinger::get_data() to use Http::get() which includes
HTTP signature authentication, while using a filter to override the
Accept header to the WebFinger-appropriate application/jrd+json.
Fixes #2593.1 parent a93eeb4 commit 6017a39
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | | - | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments