From f862be2749b4f2d8dee99128d7e3064a69920e11 Mon Sep 17 00:00:00 2001 From: "mira.bat" <97340105+irafire@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:01:15 +0200 Subject: Add an option to sign federated fetches for mastodon compatibility (#5898) * Fix player error modal Not hidden when we change the video * Correctly dispose player components * Sign cross-server fetch requests for mastodon AUTHORIZED_FETCH compatibilty * Add a remote fetch sign configuration knob * Federated fetches refactoring --------- Co-authored-by: Chocobozzz Co-authored-by: ira --- server/tests/api/activitypub/security.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index 31ebc89b4..8e87361a9 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts @@ -58,7 +58,7 @@ async function makeFollowRequest (to: { url: string }, by: { url: string, privat authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, keyId: by.url, key: by.privateKey, - headers: HTTP_SIGNATURE.HEADERS_TO_SIGN + headers: HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD } const headers = { 'digest': buildDigest(body), @@ -82,7 +82,7 @@ describe('Test ActivityPub security', function () { authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, keyId: 'acct:peertube@' + servers[1].host, key: keys.privateKey, - headers: HTTP_SIGNATURE.HEADERS_TO_SIGN + headers: HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD }) // --------------------------------------------------------------- -- cgit v1.2.3