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

ความคิดเห็น • 113

  • @marufbepary100
    @marufbepary100 ปีที่แล้ว +44

    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 หลายเดือนก่อน +6

    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.

  • @alfonsogutierrez3993
    @alfonsogutierrez3993 ปีที่แล้ว +5

    Awesome video man! Love how you explain what's actually going on and don't just write code without explaining

  • @silvertechnolo3958
    @silvertechnolo3958 8 หลายเดือนก่อน +1

    Way better than the university courses that just flounder and get distracted with useless things and never get to the point. Thanks!

  • @GloomyPineapple
    @GloomyPineapple ปีที่แล้ว +3

    Fantastic work. Much better than most video out there trying to achieve the same goal. Thanks for your time.

  • @mimiomare9439
    @mimiomare9439 หลายเดือนก่อน

    This was such a nice tutorial. Very easy to follow with thorough explanations and simple, readable code. Thanks!

  • @thomasguimezanes3012
    @thomasguimezanes3012 ปีที่แล้ว +3

    Thank you so much ! You saved my day ! Very "simple" explanation !

  • @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

  • @dominikarndt6049
    @dominikarndt6049 11 หลายเดือนก่อน +2

    Thank you so much for the amazing video, this was unbelievably helpful and uncomplicated!

  •  5 หลายเดือนก่อน

    Congratulations, very simple but it covers and explains the important things.

  • @hazematya2421
    @hazematya2421 9 หลายเดือนก่อน +1

    Thanks man ! This is really awesome. Precise and concise !

  • @ramiomar4673
    @ramiomar4673 ปีที่แล้ว +1

    love how you explain things, awesome explanation thank you.

  • @DressedHuman
    @DressedHuman 2 หลายเดือนก่อน

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

  • @vignarajpai5522
    @vignarajpai5522 หลายเดือนก่อน

    Thanks a lot, really easy to follow + straight to the point. Saved lots of reading time xD.

  • @ty.davis3
    @ty.davis3 9 หลายเดือนก่อน

    I loved this video and am excited that I got this function working in my own little project!

  • @tacca4720
    @tacca4720 3 หลายเดือนก่อน

    Excellent, well explained, clear and concise.

  • @lbuduen
    @lbuduen 6 หลายเดือนก่อน

    Excellent tutorial, to the point, keep up the good work!!!👏👏👏

  • @pranitmane
    @pranitmane 4 หลายเดือนก่อน

    to the point and clear explanation!! this is exactly what i needed..

  • @NolenFelten
    @NolenFelten ปีที่แล้ว +1

    Hey man, just inspected the django-rest-auth code and must say, nice job.

  • @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!

  • @jlassicp
    @jlassicp 2 หลายเดือนก่อน

    That was very helpful ! Thanks Adam

  • @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

  • @muhreeowki
    @muhreeowki 10 หลายเดือนก่อน

    Thank you so much for this! This was really helpful!

  • @mingxinxu1465
    @mingxinxu1465 7 หลายเดือนก่อน

    Solid explaination, so calm!

  • @amithaldar9390
    @amithaldar9390 5 หลายเดือนก่อน

    Great tutorial. Thank you very much!

  • @maxwelljohn5585
    @maxwelljohn5585 11 หลายเดือนก่อน

    wonderful, i would start mine ASAP. Good job.

  • @alexmathew526
    @alexmathew526 2 หลายเดือนก่อน

    Thank you. This was really helpful 🙂

  • @sebalatorre
    @sebalatorre 3 หลายเดือนก่อน

    Thanks for the tutorial, saved me a lot of time.

  • @JohnBiddulph
    @JohnBiddulph 6 หลายเดือนก่อน

    Thanks Adam, great tutotrial

  • @skyconet
    @skyconet 11 หลายเดือนก่อน

    Hi Adam la Morre, you are a savior. Thanks.

  • @emocortes4091
    @emocortes4091 10 หลายเดือนก่อน

    Nice video, man! Keep doing that

  • @anubis_adventure
    @anubis_adventure 3 หลายเดือนก่อน

    Thank you for this tutorial, helps me a lot

  • @xyanblank5410
    @xyanblank5410 5 หลายเดือนก่อน

    Thank you very much for this video!

  • @manofculture9915
    @manofculture9915 ปีที่แล้ว

    Thank you so much, your videos are really on point, keep going

  • @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 6 หลายเดือนก่อน

    Very good tutorial.
    Thank you.

  • @-uz
    @-uz ปีที่แล้ว

    i would love more django videos!

  • @jpgeralla920
    @jpgeralla920 ปีที่แล้ว +2

    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?

  • @codedjango
    @codedjango 9 หลายเดือนก่อน +1

    Would like to see this with JWT authentication instead of token authentication

  • @GuiSilva1
    @GuiSilva1 4 หลายเดือนก่อน

    Awesome, thank you!

  • @pencilprogrammer
    @pencilprogrammer 11 หลายเดือนก่อน

    Genuine efforts. Thanks.

  • @sakshiagarwal2992
    @sakshiagarwal2992 ปีที่แล้ว

    Very well explained.

  • @awusacollins
    @awusacollins ปีที่แล้ว

    Great video, man!

  • @Giannis-tc8nn
    @Giannis-tc8nn วันที่ผ่านมา

    Why do we need the SessionAuthentication class? We never create a session. We just pass the token on every request

  • @JohnPaulMaina
    @JohnPaulMaina หลายเดือนก่อน

    Well Explained

  • @sijanneupane
    @sijanneupane ปีที่แล้ว

    wonderful, thanks! 🍀❤

  • @ilabdata355
    @ilabdata355 หลายเดือนก่อน

    Thank U for share Bro!!! New Subscriber here!!!

  • @Tracso13
    @Tracso13 6 หลายเดือนก่อน

    Man you are a life saver!

  • @kudusbanna1439
    @kudusbanna1439 ปีที่แล้ว

    You deserve a million subscribers bro

  • @victorchendra4282
    @victorchendra4282 หลายเดือนก่อน

    Thanks for the tutorials. But, I think you miss one important thing. What about logout? 😅

  • @MusaAytmamatov
    @MusaAytmamatov ปีที่แล้ว

    Thank you bro, you helped me a lot

  • @marcyvillegas5443
    @marcyvillegas5443 ปีที่แล้ว

    Thank you for this!

  • @Tinygamer09
    @Tinygamer09 7 หลายเดือนก่อน

    Quality content 👌👍

  • @HamzaRaja-w9m
    @HamzaRaja-w9m ปีที่แล้ว +1

    What about the logout feature to log a user out?

  • @JuniorWog
    @JuniorWog 9 หลายเดือนก่อน

    Just excellent bro

  • @adil88201
    @adil88201 ปีที่แล้ว

    World class!

  • @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

  • @adhy612000151
    @adhy612000151 ปีที่แล้ว

    Wow!!!
    Thanks a lot brother!!!!!!

  • @maxscheel6083
    @maxscheel6083 8 หลายเดือนก่อน

    Miss your videos bro! Are you coming back at some point?

  • @ElHadjiGagny
    @ElHadjiGagny 3 หลายเดือนก่อน

    Awesome !!!!!!!!!!!!

  • @henoknigatu7121
    @henoknigatu7121 ปีที่แล้ว +1

    cool!...what about the logout?

  • @duwunaung7812
    @duwunaung7812 5 หลายเดือนก่อน

    Lovely 🎉

  • @AntonioSanchez-bi3nu
    @AntonioSanchez-bi3nu ปีที่แล้ว +2

    Nice video. My question is how change and recover password.

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

  • @faithkariuki3337
    @faithkariuki3337 2 หลายเดือนก่อน

    Perfect👌

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

  • @mhsama1
    @mhsama1 9 หลายเดือนก่อน

    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.

  • @O-DogKubrick
    @O-DogKubrick 10 หลายเดือนก่อน

    Hey cousin! Got something for you this Christmas…..🎄

  • @maamounhajnajeeb209
    @maamounhajnajeeb209 ปีที่แล้ว

    very good video, you forget logout func with a delete token method

  • @lucassilverio8923
    @lucassilverio8923 7 หลายเดือนก่อน

    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.

  • @shovon64
    @shovon64 6 หลายเดือนก่อน

    Thanks a lot man

  • @NikolaAleksic-de1vm
    @NikolaAleksic-de1vm 3 หลายเดือนก่อน

    How did you setup you vs to work like this...i'm new with vs code, was using pycharm

  • @ademtrabelsi6039
    @ademtrabelsi6039 ปีที่แล้ว

    Hey can we get a video on chat app using angular on the frontend ?

  • @akmaljonmamatov2346
    @akmaljonmamatov2346 6 หลายเดือนก่อน

    very good!!!!!!!!!!

  • @mboukhal104
    @mboukhal104 5 หลายเดือนก่อน

    thank you

  • @ZooOmer1994
    @ZooOmer1994 11 หลายเดือนก่อน

    Why do you create a new token for user in Login view if it hasnt been created before? Does it expires?

  • @justme-py5tv
    @justme-py5tv 11 หลายเดือนก่อน

    thank u man🤝

  • @rec-trick
    @rec-trick 6 หลายเดือนก่อน

    please videos for django ninja ecommerce

  • @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

  • @agboebuka4527
    @agboebuka4527 8 หลายเดือนก่อน

    Please what vscode extension help you send requests easily like that

  • @anggeldwi8459
    @anggeldwi8459 4 หลายเดือนก่อน

    what is difference path and re_path?

  • @Sasuke-px5km
    @Sasuke-px5km ปีที่แล้ว

    Hey sir, can you remake the tutorial but using a class based view?

  • @janice5083
    @janice5083 หลายเดือนก่อน

    so where is the link at the end of the vid

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

  • @gabrielzanda6890
    @gabrielzanda6890 10 หลายเดือนก่อน

    Thks man

  • @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 7 หลายเดือนก่อน

      I have the same problem, did you find a way to solve it?

    • @sreedharteegala455
      @sreedharteegala455 7 หลายเดือนก่อน

      @@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 7 หลายเดือนก่อน

      @@sreedharteegala455 Thank, buddy. I just tried it, and it was very helpful to me.

  • @codelab5383
    @codelab5383 6 หลายเดือนก่อน

    Love you

  • @omegaroyal
    @omegaroyal 7 หลายเดือนก่อน

    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()

  • @australianman8566
    @australianman8566 ปีที่แล้ว

    what's the extension he's using on the right side of the screen to test the endpoints?

    • @australianman8566
      @australianman8566 ปีที่แล้ว +1

      nvm he mentions it at 13:30. It's called ** drumroll **
      REST Client.

  • @alexzhang9318
    @alexzhang9318 8 หลายเดือนก่อน

    how to support token expiration?

  • @boulbirkhalilelrahman3446
    @boulbirkhalilelrahman3446 ปีที่แล้ว

    Token doesnt have objects problem i get it

  • @appaloosa-m
    @appaloosa-m ปีที่แล้ว

    yes !!

  • @user-uk8ge8si9t
    @user-uk8ge8si9t 10 วันที่ผ่านมา

    Jast Hills

  • @snarf45
    @snarf45 7 หลายเดือนก่อน

    is this jwt?

  • @yashoswal1797
    @yashoswal1797 ปีที่แล้ว

    Is this Secure as JWT?

  • @gleysonwener2436
    @gleysonwener2436 10 หลายเดือนก่อน

    Top

  • @GinesLA
    @GinesLA ปีที่แล้ว

    logout!!!