Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
interfect
funkwhale
Commits
b5a4b2ca
Verified
Commit
b5a4b2ca
authored
Mar 31, 2018
by
Eliot Berriot
Browse files
Added signature authentication on activitypub view
parent
46d40c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/federation/views.py
View file @
b5a4b2ca
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment