Django Rest Framework Authentication 🔒 ✅ Scalable Auth in 27 minutes [2023]

  Рет қаралды 79,694

Adam La Morre

Adam La Morre

Күн бұрын

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...

Пікірлер: 113
@marufbepary100
@marufbepary100 Жыл бұрын
This is precisely what I was looking for, just the backend code without the frontend. Straight to the point and just enough explanation.
@destinyobamwonyi8865
@destinyobamwonyi8865 8 ай бұрын
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.
@silvertechnolo3958
@silvertechnolo3958 8 ай бұрын
Way better than the university courses that just flounder and get distracted with useless things and never get to the point. Thanks!
@alfonsogutierrez3993
@alfonsogutierrez3993 Жыл бұрын
Awesome video man! Love how you explain what's actually going on and don't just write code without explaining
@mimiomare9439
@mimiomare9439 Ай бұрын
This was such a nice tutorial. Very easy to follow with thorough explanations and simple, readable code. Thanks!
@softwareengineer8923
@softwareengineer8923 2 ай бұрын
Such a nice tutorial for those who want to have a grasp on the topic quickly, keep up the high quality content
@GloomyPineapple
@GloomyPineapple Жыл бұрын
Fantastic work. Much better than most video out there trying to achieve the same goal. Thanks for your time.
@thomasguimezanes3012
@thomasguimezanes3012 Жыл бұрын
Thank you so much ! You saved my day ! Very "simple" explanation !
5 ай бұрын
Congratulations, very simple but it covers and explains the important things.
@hazematya2421
@hazematya2421 10 ай бұрын
Thanks man ! This is really awesome. Precise and concise !
@dominikarndt6049
@dominikarndt6049 Жыл бұрын
Thank you so much for the amazing video, this was unbelievably helpful and uncomplicated!
@ramiomar4673
@ramiomar4673 Жыл бұрын
love how you explain things, awesome explanation thank you.
@tacca4720
@tacca4720 3 ай бұрын
Excellent, well explained, clear and concise.
@pranitmane
@pranitmane 4 ай бұрын
to the point and clear explanation!! this is exactly what i needed..
@vignarajpai5522
@vignarajpai5522 2 ай бұрын
Thanks a lot, really easy to follow + straight to the point. Saved lots of reading time xD.
@lbuduen
@lbuduen 6 ай бұрын
Excellent tutorial, to the point, keep up the good work!!!👏👏👏
@ty.davis3
@ty.davis3 10 ай бұрын
I loved this video and am excited that I got this function working in my own little project!
@DressedHuman
@DressedHuman 3 ай бұрын
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❤❤
@NolenFelten
@NolenFelten Жыл бұрын
Hey man, just inspected the django-rest-auth code and must say, nice job.
@lguarinosud
@lguarinosud 9 ай бұрын
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
@jlassicp
@jlassicp 2 ай бұрын
That was very helpful ! Thanks Adam
@robelwondimu5527
@robelwondimu5527 3 ай бұрын
Woah, Everything is straight to the Point, Thanks man!
@lfc5times130
@lfc5times130 11 ай бұрын
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!
@mingxinxu1465
@mingxinxu1465 7 ай бұрын
Solid explaination, so calm!
@lumiventures
@lumiventures Жыл бұрын
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)
@sebalatorre
@sebalatorre 3 ай бұрын
Thanks for the tutorial, saved me a lot of time.
@amithaldar9390
@amithaldar9390 5 ай бұрын
Great tutorial. Thank you very much!
@muhreeowki
@muhreeowki 10 ай бұрын
Thank you so much for this! This was really helpful!
@codedjango
@codedjango 9 ай бұрын
Would like to see this with JWT authentication instead of token authentication
@alexmathew526
@alexmathew526 3 ай бұрын
Thank you. This was really helpful 🙂
@JohnBiddulph
@JohnBiddulph 6 ай бұрын
Thanks Adam, great tutotrial
@anubis_adventure
@anubis_adventure 4 ай бұрын
Thank you for this tutorial, helps me a lot
@maxwelljohn5585
@maxwelljohn5585 11 ай бұрын
wonderful, i would start mine ASAP. Good job.
@skyconet
@skyconet 11 ай бұрын
Hi Adam la Morre, you are a savior. Thanks.
@xyanblank5410
@xyanblank5410 5 ай бұрын
Thank you very much for this video!
@emocortes4091
@emocortes4091 11 ай бұрын
Nice video, man! Keep doing that
@kayb.804
@kayb.804 6 ай бұрын
Very good tutorial. Thank you.
@manofculture9915
@manofculture9915 Жыл бұрын
Thank you so much, your videos are really on point, keep going
@awusacollins
@awusacollins Жыл бұрын
Great video, man!
@-uz
@-uz Жыл бұрын
i would love more django videos!
@GuiSilva1
@GuiSilva1 4 ай бұрын
Awesome, thank you!
@sakshiagarwal2992
@sakshiagarwal2992 Жыл бұрын
Very well explained.
@jpgeralla920
@jpgeralla920 Жыл бұрын
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?
@pencilprogrammer
@pencilprogrammer 11 ай бұрын
Genuine efforts. Thanks.
@marcyvillegas5443
@marcyvillegas5443 Жыл бұрын
Thank you for this!
@JohnPaulMaina
@JohnPaulMaina 2 ай бұрын
Well Explained
@victorchendra4282
@victorchendra4282 Ай бұрын
Thanks for the tutorials. But, I think you miss one important thing. What about logout? 😅
@Tracso13
@Tracso13 6 ай бұрын
Man you are a life saver!
@adil88201
@adil88201 Жыл бұрын
World class!
@MusaAytmamatov
@MusaAytmamatov Жыл бұрын
Thank you bro, you helped me a lot
@sijanneupane
@sijanneupane Жыл бұрын
wonderful, thanks! 🍀❤
@AntonioSanchez-bi3nu
@AntonioSanchez-bi3nu Жыл бұрын
Nice video. My question is how change and recover password.
@Tinygamer09
@Tinygamer09 7 ай бұрын
Quality content 👌👍
@Giannis-tc8nn
@Giannis-tc8nn 11 күн бұрын
Why do we need the SessionAuthentication class? We never create a session. We just pass the token on every request
@maxscheel6083
@maxscheel6083 8 ай бұрын
Miss your videos bro! Are you coming back at some point?
@JuniorWog
@JuniorWog 10 ай бұрын
Just excellent bro
@henoknigatu7121
@henoknigatu7121 Жыл бұрын
cool!...what about the logout?
@HamzaRaja-w9m
@HamzaRaja-w9m Жыл бұрын
What about the logout feature to log a user out?
@predragtrajkovic4010
@predragtrajkovic4010 Жыл бұрын
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...
@ElHadjiGagny
@ElHadjiGagny 3 ай бұрын
Awesome !!!!!!!!!!!!
@ilabdata355
@ilabdata355 Ай бұрын
Thank U for share Bro!!! New Subscriber here!!!
@faithkariuki3337
@faithkariuki3337 2 ай бұрын
Perfect👌
@adhy612000151
@adhy612000151 Жыл бұрын
Wow!!! Thanks a lot brother!!!!!!
@lucassilverio8923
@lucassilverio8923 8 ай бұрын
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.
@duwunaung7812
@duwunaung7812 5 ай бұрын
Lovely 🎉
@maamounhajnajeeb209
@maamounhajnajeeb209 Жыл бұрын
very good video, you forget logout func with a delete token method
@kudusbanna1439
@kudusbanna1439 Жыл бұрын
You deserve a million subscribers bro
@O-DogKubrick
@O-DogKubrick 10 ай бұрын
Hey cousin! Got something for you this Christmas…..🎄
@shovon64
@shovon64 6 ай бұрын
Thanks a lot man
@iseminini-ubong6595
@iseminini-ubong6595 6 ай бұрын
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
@sedgesv4787
@sedgesv4787 Жыл бұрын
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.
@justme-py5tv
@justme-py5tv 11 ай бұрын
thank u man🤝
@ademtrabelsi6039
@ademtrabelsi6039 Жыл бұрын
Hey can we get a video on chat app using angular on the frontend ?
@JJ_Seno
@JJ_Seno 4 ай бұрын
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
@Sasuke-px5km
@Sasuke-px5km Жыл бұрын
Hey sir, can you remake the tutorial but using a class based view?
@mboukhal104
@mboukhal104 5 ай бұрын
thank you
@akmaljonmamatov2346
@akmaljonmamatov2346 7 ай бұрын
very good!!!!!!!!!!
@NikolaAleksic-de1vm
@NikolaAleksic-de1vm 3 ай бұрын
How did you setup you vs to work like this...i'm new with vs code, was using pycharm
@rec-trick
@rec-trick 6 ай бұрын
please videos for django ninja ecommerce
@mhsama1
@mhsama1 10 ай бұрын
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?
@VamsiK98
@VamsiK98 6 ай бұрын
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.
@codelab5383
@codelab5383 7 ай бұрын
Love you
@gabrielzanda6890
@gabrielzanda6890 10 ай бұрын
Thks man
@anggeldwi8459
@anggeldwi8459 5 ай бұрын
what is difference path and re_path?
@sebalatorre
@sebalatorre 3 ай бұрын
Question: How would you do a logout through API?
@yxtomix
@yxtomix 2 ай бұрын
you do it in the front by deleting the token from localstorage.
@agboebuka4527
@agboebuka4527 8 ай бұрын
Please what vscode extension help you send requests easily like that
@janice5083
@janice5083 Ай бұрын
so where is the link at the end of the vid
@boulbirkhalilelrahman3446
@boulbirkhalilelrahman3446 Жыл бұрын
Token doesnt have objects problem i get it
@ZooOmer1994
@ZooOmer1994 11 ай бұрын
Why do you create a new token for user in Login view if it hasnt been created before? Does it expires?
@australianman8566
@australianman8566 Жыл бұрын
what's the extension he's using on the right side of the screen to test the endpoints?
@australianman8566
@australianman8566 Жыл бұрын
nvm he mentions it at 13:30. It's called ** drumroll ** REST Client.
@alexzhang9318
@alexzhang9318 8 ай бұрын
how to support token expiration?
@sreedharteegala455
@sreedharteegala455 10 ай бұрын
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 .
@Christopher-cz9iv
@Christopher-cz9iv 8 ай бұрын
I have the same problem, did you find a way to solve it?
@sreedharteegala455
@sreedharteegala455 8 ай бұрын
@@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
@Christopher-cz9iv
@Christopher-cz9iv 8 ай бұрын
@@sreedharteegala455 Thank, buddy. I just tried it, and it was very helpful to me.
@omegaroyal
@omegaroyal 8 ай бұрын
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?
@yashraj9135
@yashraj9135 3 ай бұрын
same problem i am facing, i send the token and i get "Authenticaation credntials were not provided"
@badralwattar5799
@badralwattar5799 9 ай бұрын
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
@dhoine8464
@dhoine8464 7 ай бұрын
Did you mean: if serializer.is_valid(): user = serializer.save() user.set_password(serializer.validated_data.get("password")) user.save()
@appaloosa-m
@appaloosa-m Жыл бұрын
yes !!
@yashoswal1797
@yashoswal1797 Жыл бұрын
Is this Secure as JWT?
@snarf45
@snarf45 7 ай бұрын
is this jwt?
@gleysonwener2436
@gleysonwener2436 11 ай бұрын
Top
@user-uk8ge8si9t
@user-uk8ge8si9t 19 күн бұрын
Jast Hills
@GinesLA
@GinesLA Жыл бұрын
logout!!!
Python Django REST API In 30 Minutes - Django Tutorial
30:42
PedroTech
Рет қаралды 19 М.
Token Authentication with Django REST Framework | 2023
1:14:47
THE PROTON GUY
Рет қаралды 3,3 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 125 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 274 МЛН
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 176 М.
Session vs Token Authentication in 100 Seconds
2:18
Fireship
Рет қаралды 1 МЛН
Authentication & Refreshing Tokens Implementation
2:09:53
Dennis Ivy
Рет қаралды 237 М.
Google Ads Scripts - Setting up your dev environment for maximum productivity!
17:52
Charles Bannister (Shabba Dot IO)
Рет қаралды 251
Django API Authentication using JWT Tokens
37:06
Scalable Scripts
Рет қаралды 184 М.