How to make a Django view ONLY accessible to Unauthenticated users?
|September 29, 2014||Posted by forumadmin under TechQns||
I’m building a Django API view by extending the
I have successfully built many APIs that are only callable by an authenticated user. I have done this by adding:
permission_classes = [permissions.IsAuthenticated,]
There are some APIs that I only want unauthenticated users to call. Such as “ForgotPassword”. Basically, I want to ensure that the API caller doesn’t send in the JWT Token in the request header. How can I enforce that? There is no
|Asked By – Saqib Ali||Read Answers|