Verified Commit b5a4b2ca authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added signature authentication on activitypub view

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