'How to consume TokenAuthentication based user authentication built in DRF in Django web application
I have created a WebAPI for user authentication using Token Authentication built on Django Rest Framework. with the help of Postman I am able to determine that my user is being created, authenticated and logged out successfully.
I have created a Django web application and have successfully consumed the WebAPI endpoints which do not require authentication in my HTML files.
Now I wish to create user Login/Logout functionality and since I am new to the subject, I don't know how to do this.
Please help? a link to a tutorial would be appreciated
Regards,
Arun
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ivan S |