Is django default token authentication secure sir...
@akashjadhav50773 жыл бұрын
hi can you make video on aws cognito with DRF
@jintuthomas67663 жыл бұрын
hi ..i got Forbidden (CSRF cookie not set.)? how to solve this?
@kamtanath44946 жыл бұрын
I am trying to authentic with custom user model, but getting following error, is there any thing else that I need to add { "non_field_errors": [ "Unable to login with given credentials." ] } And this is my extended class class User(AbstractUser): bio = models.TextField(max_length=500, blank=True) location = models.CharField(max_length=30, blank=True) birth_date = models.DateField(null=True, blank=True) def __str__(self): return self.first_name
@Murga_Mutton4 жыл бұрын
Excellent video.
@FahadAli-ot5kn4 жыл бұрын
For functional view please make another video
@jacksm87094 жыл бұрын
best of them all thanks man......
@SaurabhYadavYT6 жыл бұрын
I'm developing a webpage in which after validating the user we redirect user to new page(which is only available with valid token). How we pass the token (we get after validating the user) when redirecting user to new page. I'm using Angular as front-end. and very very new to Web Develop.
@hafeezshaik12214 жыл бұрын
Hi bro, how can authenticate manually created tables fields of mysql workbench in django restframe work and how to return token , some data.... please give me answer
@prabhashswain18784 жыл бұрын
Can anyone help me
@prabhashswain18784 жыл бұрын
@@HardikPatelN yes sir ,but how can I send user object from serializers.py to login views
@waleedahmed71385 жыл бұрын
What about registering user?
@sarojpaudel74794 жыл бұрын
Hello Aarav, now my every other api call is asking for token after i created the login api view using token authentication. I dont need user to login to simply view other blog-posts. How can I solve this??
@sarojpaudel74794 жыл бұрын
@@HardikPatelN Thank you, it worked. Also, I used [AllowAny] to all the other serializers.It also worked.
@mehboobshaikh83963 жыл бұрын
can you make a video on how to integrate Django rest framework with Keycloak?
@krranjan19854 жыл бұрын
my doubt is i've already completed the token authentication using django superuser but how we can do custom token authentication using email and password. if i have the model data like email, password, age, name ...etc and i am using filter option to get details in post method now i want to generate that email and password that i have store in my database and show the rest of the result as a response 200_ok.
@krranjan19854 жыл бұрын
if you want i will show the code.
@djsamke3846 жыл бұрын
Hi sir, may i ask, What is the difference between the generic views and the viewset we used in the beginning, in the employee views?
@hemanth69515 жыл бұрын
How it sync with google signin in Android
@kaoutharasma65674 жыл бұрын
You are a life saver
@ankitagarwal9235 жыл бұрын
Can you please help me out from the problem that it provides authentication credentials not provide How can I fix it
@vinodshetty22615 жыл бұрын
Thanks Hardik...u saved my time
@djsamke3846 жыл бұрын
Sir, you forgot to check to make sure that a user is the one who created the post so that they are not allowed to update, delete or overwrite another user's posts.
@djsamke3846 жыл бұрын
Can you please let me know when you do that because I can't fine anything like the Userpassestestmixin that you can use on django forms... I tried integrating it into our generic views but it keeps saying "instance has no attribute created_by"
@vipinsharma92835 жыл бұрын
Hi Hardik in Login Serializer class you have used authenticate(username=username,password=password) where request will be taken as None but is not working in my system It is returning None Can you explain me
@npatel78155 жыл бұрын
Hi Hardik, is there any way to create an api that allows superuser to login into other user account by given user id? please share me your idea. Thank you so much!
@abhinav_agnihotry5 жыл бұрын
You can use the django's impersonate library
@npatel78155 жыл бұрын
@@abhinav_agnihotry there is also django-loginasuser package.Thanks!
@MiniAishwarya6 жыл бұрын
Sir how do you take a token from a third party API to the Rest api? How is a connection established with the third party? Can you please tell me?
@MiniAishwarya6 жыл бұрын
For getting information like dialog flow, skyscanner, etc.
@MiniAishwarya6 жыл бұрын
Aaah got it. Thank you so much.
@ultiumlabs48995 жыл бұрын
Hi, great video thanks. out of topic: What is VS code extension you installed so we could have intellisense methods pop up here like appeared here 7:36 ?
@successontap65526 жыл бұрын
The best video I have seen on the subject!
@successontap65526 жыл бұрын
When testing the API using postman I get the following error: "CSRF verification failed. Request aborted." My REST_FRAMEWORK settings are correct and I have cleared cookies. Any idea why this is happening in my app and not your video?
@naveenvadavalasa6 жыл бұрын
Started with token authentication ended with session authentication. You have mixed up every thing...
@vinodreddy17226 жыл бұрын
sir u have showed both session and token authentication so little bit confusing ,could you please make differentiate session and token authentication. sir one more doubt where we are creating username password initially is it superuser?
@vinodreddy17226 жыл бұрын
Aarav Tech tq sir really hats off u, i suggested these videos to my frds
@vinodreddy17226 жыл бұрын
sir one more doubt at 21.32 if we login second time its throwing some error,but it is login only r8 then why we want to pass tokens in header? or do we need to pass token in every request header after login ,am i r8?
@shahbozabdullayev55834 жыл бұрын
Whatta Fck! Who uses light theme! My eyes got binded!
@pankajkulkarni35545 жыл бұрын
hardik i have used your code but raisd bad request
@RamaKrishna-mk3zm6 жыл бұрын
Hi sir, i am new Rest API, my doubt is: in real time applications, how to perform login api, then how to capture token received and how to use it in next post/put api's. how to achieve this ? or what are required to get above done without manual intervention.
@hodophile_footsteps5 жыл бұрын
@@HardikPatelN hi Aarav, i need to capture the token from the frontend request and authenticate the token by django rest api and respond to a get method..Can you help?
@abhinav2615 жыл бұрын
perfect blog bro salute you
@bhaveshagarwal17665 жыл бұрын
How to remove token after user logged out
@uweopfern6 жыл бұрын
I have two questions on this tutorial first can yu explain to me this line (token, created = Token.objects.get_or_create(user=user)) Second pls allow me to have much explanation on logoutView ```class LogoutView(APIView): authentication_classes = (TokenAuthentication,) def post(self, request): django_logout(request) return Response(status=204)```