Broadcast library updates (name, description, visibility) over federation

This commit is contained in:
Eliot Berriot 2018-11-09 19:53:12 +01:00
parent 51457aa889
commit 4976981926
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 185 additions and 1 deletions

View file

@ -85,7 +85,7 @@ def verify_django(django_request, public_key):
def get_auth(private_key, private_key_id):
return requests_http_signature.HTTPSignatureAuth(
use_auth_header=False,
headers=["(request-target)", "user-agent", "host", "date", "content-type"],
headers=["(request-target)", "user-agent", "host", "date"],
algorithm="rsa-sha256",
key=private_key.encode("utf-8"),
key_id=private_key_id,