diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-06 15:11:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-06 15:13:59 +0200 |
commit | e08ec7a723724c247d9bbcdbf157da08d3ba31a7 (patch) | |
tree | bfa3fdc9b3a57a9ac40b8cf900f396c1ccde0215 /server/initializers/constants.ts | |
parent | 822f50fa814e945d136b8bb5a7e14e3c84889d42 (diff) | |
download | PeerTube-e08ec7a723724c247d9bbcdbf157da08d3ba31a7.tar.gz PeerTube-e08ec7a723724c247d9bbcdbf157da08d3ba31a7.tar.zst PeerTube-e08ec7a723724c247d9bbcdbf157da08d3ba31a7.zip |
Handle HTTP signature draft 11
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index dca792b1b..44f676a15 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -589,11 +589,7 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { | |||
589 | const HTTP_SIGNATURE = { | 589 | const HTTP_SIGNATURE = { |
590 | HEADER_NAME: 'signature', | 590 | HEADER_NAME: 'signature', |
591 | ALGORITHM: 'rsa-sha256', | 591 | ALGORITHM: 'rsa-sha256', |
592 | HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ], | 592 | HEADERS_TO_SIGN: [ '(request-target)', '(created)', 'host', 'date', 'digest' ], |
593 | REQUIRED_HEADERS: { | ||
594 | ALL: [ '(request-target)', 'host', 'date' ], | ||
595 | POST: [ '(request-target)', 'host', 'date', 'digest' ] | ||
596 | }, | ||
597 | CLOCK_SKEW_SECONDS: 1800 | 593 | CLOCK_SKEW_SECONDS: 1800 |
598 | } | 594 | } |
599 | 595 | ||