[Answered ]-DJANGO REST API – How do I restrict user access to API?

1👍

Readded authentication_classes = [TokenAuthentication]

Tested using curl -H "Authorization: Token 144eaaf50a50f4055bc50878ee1b3593aa63d221" http://127.0.0.1:8000/api/users/
Now I see data in console as it should.

0👍

Will leave authentication_classes = [TokenAuthentication] removed. Thanks Everyone.

Leave a comment