Django Rest Framework Authentication 🔒 ✅ Scalable Auth in 27 minutes [2023]
ฝัง
- เผยแพร่เมื่อ 26 ก.ย. 2024
- Learn Django Rest authentication in a simple, scalable way!
Django REST framework Auth Token is a built-in token authentication system that comes with Django REST framework (DRF). It is a simple token-based authentication mechanism that allows clients to authenticate with the server by providing an API token.
Clone the code here: github.com/ala...
This is precisely what I was looking for, just the backend code without the frontend. Straight to the point and just enough explanation.
This is the best video I have seen in restframework, no unecessary view rendering and setting of routers and use of generics and all that, just straight forward api and response the key things to know.
Awesome video man! Love how you explain what's actually going on and don't just write code without explaining
Way better than the university courses that just flounder and get distracted with useless things and never get to the point. Thanks!
Fantastic work. Much better than most video out there trying to achieve the same goal. Thanks for your time.
This was such a nice tutorial. Very easy to follow with thorough explanations and simple, readable code. Thanks!
Thank you so much ! You saved my day ! Very "simple" explanation !
Such a nice tutorial for those who want to have a grasp on the topic quickly, keep up the high quality content
Thank you so much for the amazing video, this was unbelievably helpful and uncomplicated!
Congratulations, very simple but it covers and explains the important things.
Thanks man ! This is really awesome. Precise and concise !
love how you explain things, awesome explanation thank you.
I was exactly looking for this tutorial. Thanks Adam bro. It helped me a lot. I think you are underrated. Anyone should give a look to this channel, at least this video❤❤
Thanks a lot, really easy to follow + straight to the point. Saved lots of reading time xD.
I loved this video and am excited that I got this function working in my own little project!
Excellent, well explained, clear and concise.
Excellent tutorial, to the point, keep up the good work!!!👏👏👏
to the point and clear explanation!! this is exactly what i needed..
Hey man, just inspected the django-rest-auth code and must say, nice job.
Woah, Everything is straight to the Point, Thanks man!
Very good Tutorial and we can use this in real time projects. We can add mobile number or any fields during registration process with this customisation. Thanks a lot man!
That was very helpful ! Thanks Adam
Mate, exactly what I was looking for, thank you! Now you mentioned that in other video you would explain the how to make ir work with JS but cant seem to find it
Thank you so much for this! This was really helpful!
Solid explaination, so calm!
Great tutorial. Thank you very much!
wonderful, i would start mine ASAP. Good job.
Thank you. This was really helpful 🙂
Thanks for the tutorial, saved me a lot of time.
Thanks Adam, great tutotrial
Hi Adam la Morre, you are a savior. Thanks.
Nice video, man! Keep doing that
Thank you for this tutorial, helps me a lot
Thank you very much for this video!
Thank you so much, your videos are really on point, keep going
Thank you very much for your videos, as a student I really need it, it would be cool to see a video where detailed design work is being done on Vue js, for example, how to add new elements)
Very good tutorial.
Thank you.
i would love more django videos!
awesome! helped me a lot! also, i would like to ask how would you securely send the token from the server to the user/client? can you hide it or encrypt it?
Would like to see this with JWT authentication instead of token authentication
Awesome, thank you!
Genuine efforts. Thanks.
Very well explained.
Great video, man!
Why do we need the SessionAuthentication class? We never create a session. We just pass the token on every request
Well Explained
wonderful, thanks! 🍀❤
Thank U for share Bro!!! New Subscriber here!!!
Man you are a life saver!
You deserve a million subscribers bro
Thanks for the tutorials. But, I think you miss one important thing. What about logout? 😅
Thank you bro, you helped me a lot
Thank you for this!
Quality content 👌👍
What about the logout feature to log a user out?
Just excellent bro
World class!
Hi Adam, thanks I finally content on DRF authentication that actually works! Can someone else use these endpoint in some other location and they still work? I asked because I have a team working on a project with frontend and backend
Wow!!!
Thanks a lot brother!!!!!!
Miss your videos bro! Are you coming back at some point?
Awesome !!!!!!!!!!!!
cool!...what about the logout?
Lovely 🎉
Nice video. My question is how change and recover password.
Very good tutorial but you did not cover logout and you didn't explain when token will expire, also how to set more complex password rules...
Perfect👌
I appreciate your work.
Can you create an app with MERN stack that can send file from one computer to another with local network.
and how to implement your chat app on that.
Hi thank you for your video. I have implemented logout api in views file but when sending post method to logout api i get this : "detail": "Authentication credentials were not provided." how should i send logout request?
Hi Adam,
At 20:55 i see that password isn’t hashed , i am also having same issue it is storing plain text in postgresql Database.
Hey cousin! Got something for you this Christmas…..🎄
very good video, you forget logout func with a delete token method
Really nice tutorial, only one thing, this way the password is not being hashed.. I'm testing and receiving the password that we set while testing API.
Thanks a lot man
How did you setup you vs to work like this...i'm new with vs code, was using pycharm
Hey can we get a video on chat app using angular on the frontend ?
very good!!!!!!!!!!
thank you
Why do you create a new token for user in Login view if it hasnt been created before? Does it expires?
thank u man🤝
please videos for django ninja ecommerce
If you're on windows, the equivalent command to activate the virtual environment is ```. venv/scripts/activate```. it's a dot (.) instead of 'source', and I guess for my version, it uses Scripts instead of bin
Please what vscode extension help you send requests easily like that
what is difference path and re_path?
Hey sir, can you remake the tutorial but using a class based view?
so where is the link at the end of the vid
Question: How would you do a logout through API?
you do it in the front by deleting the token from localstorage.
Thks man
im having touble for test_token API, im tesitn gthe apis in postman, but when im testing the test_Token api , this is the response that im getting
{
"detail": "Authentication credentials were not provided."
}
I've correctly passed the token in authorization .
I have the same problem, did you find a way to solve it?
@@Christopher-cz9iv yes , you should add a header in headers section of postman. In this case , key is 'Authorization' and value is 'Token "YOUR_TOKEN" '. And set the http request to GET and you'll get the response. Hope this helps
@@sreedharteegala455 Thank, buddy. I just tried it, and it was very helpful to me.
Love you
The rest calls do not work for me. I keep getting {"detail": "Authentication credentials were not provided."} as a response. Do you have some special settings.py?
same problem i am facing, i send the token and i get "Authenticaation credntials were not provided"
Why did you set the password on the user object then saved it again? these are 2 writes on the database. can you just alter the password in the serializer and save it? 19:40
Did you mean:
if serializer.is_valid():
user = serializer.save()
user.set_password(serializer.validated_data.get("password"))
user.save()
what's the extension he's using on the right side of the screen to test the endpoints?
nvm he mentions it at 13:30. It's called ** drumroll **
REST Client.
how to support token expiration?
Token doesnt have objects problem i get it
yes !!
Jast Hills
is this jwt?
Is this Secure as JWT?
Top
logout!!!