Skip to content

Commit 5c3ae43

Browse files
committed
CustomJSONWebTokenAuthentication for GET Pub BCO
Changes to be committed: modified: biocompute/apis.py
1 parent 242602c commit 5c3ae43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

biocompute/apis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""BioCompute Object APIs
55
"""
66

7+
from authentication.services import CustomJSONWebTokenAuthentication
78
from biocompute.services import (
89
BcoDraftSerializer,
910
BcoValidator,
@@ -664,7 +665,7 @@ class PublishedRetrieveApi(APIView):
664665
Specifies the version of the BCO to be retrieved.
665666
"""
666667

667-
authentication_classes = []
668+
authentication_classes = [CustomJSONWebTokenAuthentication]
668669
permission_classes = [AllowAny]
669670

670671
@swagger_auto_schema(
@@ -697,7 +698,6 @@ class PublishedRetrieveApi(APIView):
697698

698699
def get(self, request, bco_accession, bco_version):
699700
requester = request.user
700-
print(requester)
701701
bco_instance = retrieve_bco(bco_accession, requester, bco_version)
702702
if bco_instance is False:
703703
return Response(

0 commit comments

Comments
 (0)