Django Rest Framework: User Token Authentication || Login, Register, and Logout

preview_player
Показать описание
In this tutorial, you'll learn how to authenticate users in Django Rest Framework using the Knox Library.

Рекомендации по теме
Комментарии
Автор

please share the link to the source code

zaheeruddinbaber
Автор

Thank your Albert, I'm gettin' into DRF and this tutorial was very clear to me. Thank you very much bro.

rafael
Автор

It was best...for django rest api Authentication ❤❤❤

ShibliSabbir-llwc
Автор

I had a problem when I created new user using endpoint. The problem was with RegisterSerializer - the password wasn't saved correctly - django admin - 'Invalid password format or unknown hashing algorithm. Raw passwords are not stored, so there is no way to see this user’s password, but you can change the password using'.

One of the Solutions is:

def create(self, validated_data):
user = User(
email=validated_data.get('email'),
username=validated_data.get('username'),
first_name=validated_data.get('first_name'),
last_name=validated_data.get('last_name'),
)

user.save()

return user

samuelkocur
Автор

My Login route is nt returning user details... Its Say ReturnDict' object is not callabe

tompatrickhankz
Автор

Hello excellent video!, when I create a user does not recognize the password, it says "
Invalid password format or unknown hashing algorithm."
do you know how to fix it?

stackheap
Автор

I want login api email id and password this field who to generate token

Surendran.sBscIT
Автор

I never understood how I am supposed to serve my views and templates in the front end server with the right Token for every user is trying to login..

nonsensesasa
Автор

Hi @ALBERT
i have seen many video regardi api but Nobody teach how to use signupapi in Html i.e how to send data from html to backend

how to use api in frontend as signup api, login api this is challengi task

RahulGupta-pwei
Автор

Do you have any video login in with dja go rest api and volley ?

lolitalolita
Автор

I have a django rest api I need to consume. But I'm have a csrf token error in my postman. How can I bypass this error ? The login works well on browsers but not in postman.

ifeanyielemson
Автор

knox is not working for django 4.0, its shwoing some errors. is there any way to fix it? for django 3.2, its working

rameshbabu
Автор

cant login other users except for the [
"Unable to log in with provided credentials."
]

dipuometuel
Автор

I really like the content as it is clear and understandable though boring. The way you don't explain much and you are kinda passive leaving things to run without talking much makes it boring. In the future kindly be very active explain explicitly how, why, to keep audience active too. Again your tone is low. That makes it boring.
please try to work on those areas, again i really like the content in the video since it is teaching alot of important content. thanks alot.

YnwA