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:
parent
822f50fa81
commit
e08ec7a723
3 changed files with 23 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue