mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 20:39:17 +02:00
Added signature authentication on activitypub view
This commit is contained in:
parent
46d40c7ffa
commit
b5a4b2ca6a
1 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue