Building REST API authentication endpoints with dj-rest-auth

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • This tutorial will teach you how to create REST API endpoints in your Django project for user registration, authentication, and more using the dj-rest-auth package. I'll guide you through the process of installing and setting up dj-rest-auth, and demonstrate how to use its endpoints to handle registration and authentication tasks. Along the way, you'll get to witness token authentication in action and learn how it works.
    Link to the official documentation:
    dj-rest-auth.r...

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

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

    Awesome, never would have attempted to read doc and do it simultaneously as a freebie if you haven't handheld like this. Do more videos on django rest framework packages

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

    Thanks for the nice tutorial. As an additional comment, currently, to work with allauth, you must add the allauth middleware as well in the list of your middleware and lastly, define authentication backend to use. If this is not defined, users are not able to log in and not token will be received!

  • @emailvinz
    @emailvinz 10 หลายเดือนก่อน +1

    Good walkaround (despite a terrible sound quality) ! But without using social accounts (how the hell does it work ??? I'm still trying to find out), I see no interest in this library, except maybe to spare you the time of creating your own, but in the other hand you'll have to figure out how to make simple things work (e.g: resend email gives me a 'ok' but doesn't sent the email, the email verification seems not to work a simple way... it will take me more time to understand how to do that with dj-rest-auth than writing my own api authentication, mostly because of the poor quality of dj-rest-auth documentation).
    Anyway, thank you for this video, it was in some way instructive, and not a complete waste of time for me.

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

      Thanks for the feedback! Apologies for the sound quality. I've noted your concerns regarding the library and documentation, and I'll be sure to consider them in future tutorials. Appreciate your time watching!

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

    Can you show the usage with custom user model ?

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

    I'm trying to create a social login api with Django for a react frontend, how can I do that

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

    The problem I have with django rest authentication tutorials is that, the frontend integration is almost non-existent or too old. But the backend configuration is everywhere.

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

      Having similar troubles while I try to create a React frontend with Django Rest backend. Have you found any success with getting authentication working?

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

      @@aarong241 I didn't find any, I just switch to using htmx with django. My site it almost complete.

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

      I understand your concern. Frontend integration is a crucial part of building a complete and functional application, and it's unfortunate that many tutorials tend to focus more on the backend configuration. However, If you're interested, I can consider creating a follow-up video that addresses frontend integration to complement the REST API authentication tutorial. Let me know if that would be helpful!

  • @AnjaliSharma-lq8ut
    @AnjaliSharma-lq8ut ปีที่แล้ว

    Love you dude. Thankyou so much