Django JWT Authentication in 7 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024
  • In this video I'll show you how I handle Authentication when building a backend with Django. When I'm using Django I always use this authentication library and I almost always use JWT's. I'll show you the easiest and most straightforward step to add great authentication that is also easy to work with since we have set-cookie headers.
    #django #djangorestframework #python #authentication #jsonwebtoken #jwt

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

  • @crocodile7719-d3b
    @crocodile7719-d3b 4 หลายเดือนก่อน

    Is this compatible with Custom user and Djoser package and if we want to authenticate when registering, will it set the cookie?

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

      Yes, you can use Custom User, I always use this with Customer User and it works seamlessly. dj-rest-auth has a registration endpoint. Social authentication is supported and many other things.

    • @crocodile7719-d3b
      @crocodile7719-d3b 4 หลายเดือนก่อน

      @@tenacity_dev can you make video about that

    • @tenacity_dev
      @tenacity_dev  4 หลายเดือนก่อน +1

      @@crocodile7719-d3b I'll keep that in mind for future videos I'll be doing, good suggestion

    • @crocodile7719-d3b
      @crocodile7719-d3b 4 หลายเดือนก่อน

      @@tenacity_dev and how incode user_info in access token