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

  Рет қаралды 65,779

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/alamorre/django-re...

Пікірлер: 104
@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 5 ай бұрын
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.
@GloomyPineapple
@GloomyPineapple Жыл бұрын
Fantastic work. Much better than most video out there trying to achieve the same goal. Thanks for your time.
@alfonsogutierrez3993
@alfonsogutierrez3993 Жыл бұрын
Awesome video man! Love how you explain what's actually going on and don't just write code without explaining
@hazematya2421
@hazematya2421 7 ай бұрын
Thanks man ! This is really awesome. Precise and concise !
@thomasguimezanes3012
@thomasguimezanes3012 Жыл бұрын
Thank you so much ! You saved my day ! Very "simple" explanation !
@dominikarndt6049
@dominikarndt6049 9 ай бұрын
Thank you so much for the amazing video, this was unbelievably helpful and uncomplicated!
@silvertechnolo3958
@silvertechnolo3958 6 ай бұрын
Way better than the university courses that just flounder and get distracted with useless things and never get to the point. Thanks!
@ty.davis3
@ty.davis3 7 ай бұрын
I loved this video and am excited that I got this function working in my own little project!
@ramiomar4673
@ramiomar4673 10 ай бұрын
love how you explain things, awesome explanation thank you.
@muhreeowki
@muhreeowki 8 ай бұрын
Thank you so much for this! This was really helpful!
@jlassicp
@jlassicp 7 күн бұрын
That was very helpful ! Thanks Adam
@lbuduen
@lbuduen 3 ай бұрын
Excellent tutorial, to the point, keep up the good work!!!👏👏👏
@emocortes4091
@emocortes4091 8 ай бұрын
Nice video, man! Keep doing that
3 ай бұрын
Congratulations, very simple but it covers and explains the important things.
@robelwondimu5527
@robelwondimu5527 20 күн бұрын
Woah, Everything is straight to the Point, Thanks man!
@pranitmane
@pranitmane 2 ай бұрын
to the point and clear explanation!! this is exactly what i needed..
@softwareengineer8923
@softwareengineer8923 6 күн бұрын
Such a nice tutorial for those who want to have a grasp on the topic quickly, keep up the high quality content
@alexmathew526
@alexmathew526 16 күн бұрын
Thank you. This was really helpful 🙂
@NolenFelten
@NolenFelten 11 ай бұрын
Hey man, just inspected the django-rest-auth code and must say, nice job.
@manofculture9915
@manofculture9915 Жыл бұрын
Thank you so much, your videos are really on point, keep going
@awusacollins
@awusacollins Жыл бұрын
Great video, man!
@maxwelljohn5585
@maxwelljohn5585 8 ай бұрын
wonderful, i would start mine ASAP. Good job.
@lfc5times130
@lfc5times130 8 ай бұрын
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!
@tacca4720
@tacca4720 Ай бұрын
Excellent, well explained, clear and concise.
@mingxinxu1465
@mingxinxu1465 4 ай бұрын
Solid explaination, so calm!
@lguarinosud
@lguarinosud 6 ай бұрын
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
@amithaldar9390
@amithaldar9390 3 ай бұрын
Great tutorial. Thank you very much!
@sebalatorre
@sebalatorre Ай бұрын
Thanks for the tutorial, saved me a lot of time.
@JohnBiddulph
@JohnBiddulph 4 ай бұрын
Thanks Adam, great tutotrial
@skyconet
@skyconet 8 ай бұрын
Hi Adam la Morre, you are a savior. Thanks.
@anubis_adventure
@anubis_adventure Ай бұрын
Thank you for this tutorial, helps me a lot
@-uz
@-uz 11 ай бұрын
i would love more django videos!
@pencilprogrammer
@pencilprogrammer 8 ай бұрын
Genuine efforts. Thanks.
@xyanblank5410
@xyanblank5410 2 ай бұрын
Thank you very much for this video!
@sakshiagarwal2992
@sakshiagarwal2992 9 ай бұрын
Very well explained.
@DressedHuman
@DressedHuman 13 күн бұрын
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❤❤
@GuiSilva1
@GuiSilva1 Ай бұрын
Awesome, thank you!
@marcyvillegas5443
@marcyvillegas5443 Жыл бұрын
Thank you for this!
@sijanneupane
@sijanneupane 11 ай бұрын
wonderful, thanks! 🍀❤
@MusaAytmamatov
@MusaAytmamatov 10 ай бұрын
Thank you bro, you helped me a lot
@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)
@kayb.804
@kayb.804 4 ай бұрын
Very good tutorial. Thank you.
@Tracso13
@Tracso13 3 ай бұрын
Man you are a life saver!
@adil88201
@adil88201 Жыл бұрын
World class!
@Tinygamer09
@Tinygamer09 4 ай бұрын
Quality content 👌👍
@adhy612000151
@adhy612000151 Жыл бұрын
Wow!!! Thanks a lot brother!!!!!!
@JuniorWog
@JuniorWog 7 ай бұрын
Just excellent bro
@jpgeralla920
@jpgeralla920 11 ай бұрын
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?
@kudusbanna1439
@kudusbanna1439 Жыл бұрын
You deserve a million subscribers bro
@ElHadjiGagny
@ElHadjiGagny 19 күн бұрын
Awesome !!!!!!!!!!!!
@duwunaung7812
@duwunaung7812 3 ай бұрын
Lovely 🎉
@faithkariuki3337
@faithkariuki3337 2 күн бұрын
Perfect👌
@shovon64
@shovon64 4 ай бұрын
Thanks a lot man
@justme-py5tv
@justme-py5tv 9 ай бұрын
thank u man🤝
@maxscheel6083
@maxscheel6083 6 ай бұрын
Miss your videos bro! Are you coming back at some point?
@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.
@codelab5383
@codelab5383 4 ай бұрын
Love you
@NikolaAleksic-de1vm
@NikolaAleksic-de1vm 28 күн бұрын
How did you setup you vs to work like this...i'm new with vs code, was using pycharm
@akmaljonmamatov2346
@akmaljonmamatov2346 4 ай бұрын
very good!!!!!!!!!!
@mhsama1
@mhsama1 7 ай бұрын
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?
@sebalatorre
@sebalatorre Ай бұрын
Question: How would you do a logout through API?
@jairajsahgal7101
@jairajsahgal7101 7 ай бұрын
Thank you
@user-zf8ew2bh3j
@user-zf8ew2bh3j 9 ай бұрын
What about the logout feature to log a user out?
@mboukhal104
@mboukhal104 2 ай бұрын
thank you
@codedjango
@codedjango 6 ай бұрын
Would like to see this with JWT authentication instead of token authentication
@ademtrabelsi6039
@ademtrabelsi6039 Жыл бұрын
Hey can we get a video on chat app using angular on the frontend ?
@VamsiK98
@VamsiK98 4 ай бұрын
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.
@iseminini-ubong6595
@iseminini-ubong6595 4 ай бұрын
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
@ZooOmer1994
@ZooOmer1994 8 ай бұрын
Why do you create a new token for user in Login view if it hasnt been created before? Does it expires?
@gabrielzanda6890
@gabrielzanda6890 8 ай бұрын
Thks man
@anggeldwi8459
@anggeldwi8459 2 ай бұрын
what is difference path and re_path?
@maamounhajnajeeb209
@maamounhajnajeeb209 11 ай бұрын
very good video, you forget logout func with a delete token method
@henoknigatu7121
@henoknigatu7121 11 ай бұрын
cool!...what about the logout?
@agboebuka4527
@agboebuka4527 5 ай бұрын
Please what vscode extension help you send requests easily like that
@Sasuke-px5km
@Sasuke-px5km 9 ай бұрын
Hey sir, can you remake the tutorial but using a class based view?
@predragtrajkovic4010
@predragtrajkovic4010 10 ай бұрын
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...
@O-DogKubrick
@O-DogKubrick 7 ай бұрын
Hey cousin! Got something for you this Christmas…..🎄
@rec-trick
@rec-trick 4 ай бұрын
please videos for django ninja ecommerce
@appaloosa-marketing
@appaloosa-marketing 9 ай бұрын
yes !!
@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 6 ай бұрын
how to support token expiration?
@sreedharteegala455
@sreedharteegala455 8 ай бұрын
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 5 ай бұрын
I have the same problem, did you find a way to solve it?
@sreedharteegala455
@sreedharteegala455 5 ай бұрын
@@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 5 ай бұрын
@@sreedharteegala455 Thank, buddy. I just tried it, and it was very helpful to me.
@boulbirkhalilelrahman3446
@boulbirkhalilelrahman3446 Жыл бұрын
Token doesnt have objects problem i get it
@AntonioSanchez-bi3nu
@AntonioSanchez-bi3nu Жыл бұрын
Nice video. My question is how change and recover password.
@omegaroyal
@omegaroyal 5 ай бұрын
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 20 күн бұрын
same problem i am facing, i send the token and i get "Authenticaation credntials were not provided"
@yashoswal1797
@yashoswal1797 Жыл бұрын
Is this Secure as JWT?
@lucassilverio8923
@lucassilverio8923 5 ай бұрын
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.
@badralwattar5799
@badralwattar5799 7 ай бұрын
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 4 ай бұрын
Did you mean: if serializer.is_valid(): user = serializer.save() user.set_password(serializer.validated_data.get("password")) user.save()
@gleysonwener2436
@gleysonwener2436 8 ай бұрын
Top
@snarf45
@snarf45 4 ай бұрын
is this jwt?
@GinesLA
@GinesLA 11 ай бұрын
logout!!!
@JJ_Seno
@JJ_Seno Ай бұрын
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
@xjpfxei
@xjpfxei 11 ай бұрын
"from .serializers .. " - doesn't work :/
@duwunaung7812
@duwunaung7812 3 ай бұрын
Lovely 🎉
Authentication & Refreshing Tokens Implementation
2:09:53
Dennis Ivy
Рет қаралды 227 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 18 МЛН
Django API Authentication using JWT Tokens
37:06
Scalable Scripts
Рет қаралды 172 М.
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 108 М.
Token Authentication with Django REST Framework | 2023
1:14:47
THE PROTON GUY
Рет қаралды 2,2 М.
Complete Django Rest Framework JWT Authentication System
46:25
Henry Coding stack
Рет қаралды 21 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 382 М.