1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Handle HTTP signature draft 11

This commit is contained in:
Chocobozzz 2022-05-06 15:11:54 +02:00
parent 822f50fa81
commit e08ec7a723
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 23 additions and 9 deletions

View file

@ -589,11 +589,7 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
const HTTP_SIGNATURE = {
HEADER_NAME: 'signature',
ALGORITHM: 'rsa-sha256',
HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ],
REQUIRED_HEADERS: {
ALL: [ '(request-target)', 'host', 'date' ],
POST: [ '(request-target)', 'host', 'date', 'digest' ]
},
HEADERS_TO_SIGN: [ '(request-target)', '(created)', 'host', 'date', 'digest' ],
CLOCK_SKEW_SECONDS: 1800
}