DRF Permissions

15 views
Skip to first unread message

Suraj Thapa FC

unread,
Sep 3, 2019, 2:55:33 AM9/3/19
to django...@googlegroups.com
In DRF, only AllowAny permission is working.....


My Views.py

class generate_course(APIView) :
         .
         .
         .
         permission_classes = (IsAuthenticated,)
         authentication_classes = (JSONWebTokenAuthentication,)

         def post ( self,  request) :
               ....
              .....
             ....


I also define the setting.py. And also given the token in headers


The postman giving the error
{
detail : Authentication credential were not provided. 

Reply all
Reply to author
Forward
0 new messages