Skip to content
Snippets Groups Projects
Verified Commit b5a4b2ca authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added signature authentication on activitypub view

parent 46d40c7f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ from rest_framework import response
from rest_framework.decorators import list_route, detail_route
from . import actors
from . import authentication
from . import renderers
from . import serializers
from . import webfinger
......@@ -23,7 +24,8 @@ class FederationMixin(object):
class InstanceActorViewSet(FederationMixin, viewsets.GenericViewSet):
lookup_field = 'actor'
lookup_value_regex = '[a-z]*'
authentication_classes = []
authentication_classes = [
authentication.SignatureAuthentication]
permission_classes = []
renderer_classes = [renderers.ActivityPubRenderer]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment