Sir plz make a project of e-commerce api or any api of DRF so that our idea will get cleared that how can we use all ur taught concept in real time project
sir ek choti si problem resolve krne me help krdo mujhe redirect krna h dynamic url me, like upload a image (upload.html) and result show on next page using dynamic url that image only (result.html) in django
Why cannot I login using that website? While using session authentication, there is no error while logging in but if i use JWTAuthentication, i cannot login to the site, it says HTTP 401 Unauthorized Allow: GET, POST, HEAD, OPTIONS Content-Type: application/json Vary: Accept WWW-Authenticate: Bearer realm="api" { "detail": "Authentication credentials were not provided." }
@@geekyshows When doing http request in terminal then getting error as "The term http is not recognised as the name of a cmdlet, function, script file, or operable program." And in CMD it is giving error as "http is not recognized as an internal or external command, operable program or batch file." What to be done help please.
hey everyone why we need to pass this token with inserting deleting and updating time . we will be need only at the time of logging or acces the data but why we need inserting time? please help anybody?
dont use this command line way to verify or refresh token, you can browse these urls directly in browser and you will be redirected to drf's default page
please help me with this error : "from jwt import InvalidAlgorithmError, InvalidTokenError, algorithms ImportError: cannot import name 'InvalidAlgorithmError' from 'jwt' "
Error at 30:40 command: AttributeError: type object 'BlacklistedToken' has no attribute 'objects' got this error while verifying the token, ye error hat hi nahi rha hai. Bohot try kiya google bhi kar liya but kuch nahi mila. Need a little help.
Lekin ye sab aap terminal me kyun kar rhe hai jaise normal chrome me karte the wese kyun nhi matlv baki crud operation aur baki sab jese chrome me kiye the
You may need frontend or other tool to perform few operation I do not want to make it complicated including any frontend lib e.g. reactjs or any tool e.g. postman so using simple terminal. Just keep following the playlist u will understand it each and everything clearly.
when generating gettoken I got an error ==== http: error: ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): M ax retries exceeded with url: /gettoken/ (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')) while doing a POST request to URL: 127.0.0 .1:8000/gettoken/
@@geekyshows thanks sir , I have one simple question, I saw your video on project of jwt authentication, in which you generated the token manually , but you didn't added the function to handle refresh token, and verify. in this video you just showed that we can add three api for generating, refreshing and verifying but in the project video you didn't do so , I am very much confused now, please guide me
@sumitrathor9929 I cant actually recall that video as i have created it long ago but To handle expired token, verify and refresh token you need to create interceptor on the frontend side which will intercept the request to verify whether token is expired or not If token is expired then it will refresh the token and update the access token then request-response cycle will complete. I would request you to watch my recent session authentication video to have clear concept about it where i used interceptor on the frontend But as its session authentication so there is no token involved but the logic will remain same for the interceptor.
Not everyone knows Postman I try to stick to core as much as possible so i used http to make request. Whether you use postman or swagger or axios or fetch, at the end you make http request. so always Learn core Never depend on a Tool to learn another tool. Suppose tomorrow Postman get removed or dead then this tutorial will become completely useless. You can follow this ua-cam.com/video/lo7lBD9ynVc/v-deo.html
Thankyou so much sir for clearing concept on JWT,
Although I'm not working on django, but I can use this concept in Node JS...😎
Sir plz make a project of e-commerce api or any api of DRF so that our idea will get cleared that how can we use all ur taught concept in real time project
Exactly
Thanks for all the videos
you are best guy on youtube
Easiest explanation.....
Please make Shoppingly e-commerce API using rest API's so that whole Rest API's concept will get clear for us including Authentication
Authenticate Django Apps with Another Django App Hosted Separately
kese kar sakte sir esa plz create project if possible
Sir please django oauth 2.0 toolkit k uper bhi video bnaye
Sir this is helpful for us with the help of your videos and I am also fan of your efforts
you are great sir
Terminal mai thike but website Mai kaise karenge jwt aur authenticate user Directly? I mean user thodi ye sab steps karega on terminal?
Once you learn basics follow this playlist ua-cam.com/play/PLbGui_ZYuhihw6B6FgGeOd1bAluciXJ99.html
Bhai jwt function based views ke liye batao please kaise karte hay
Nice sir jee
q k parhnay ki zarorat ni qk ap daikh rahay ho meri video. love that confidence bro
Great video..please created a oauth video as well
*Must reply ; graphql* pdege kya hum isme ?
No
@@geekyshows ok :(
Great tutorial on jwt 👍👍👍👍
Love you Boss❤️
If you had shown how token will be generated and verified while logging in, it would have helped
thanks bhai
धन्यवाद सर
Sir jb gettoken/ url ko hit krta hon tou muja response ma html code dehkta ha rather than Access token.
Kindly guide me.
sir ek choti si problem resolve krne me help krdo mujhe redirect krna h dynamic url me, like upload a image (upload.html) and result show on next page using dynamic url that image only (result.html) in django
How can we store this token for session?
Sir learning a lot from you keep it up
How can deal when the access token and refresh token both get expire?
for that you have to create interceptor in your frontend
Make a video on django 0Auth
Why cannot I login using that website? While using session authentication, there is no error while logging in but if i use JWTAuthentication, i cannot login to the site, it says
HTTP 401 Unauthorized
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
WWW-Authenticate: Bearer realm="api"
{
"detail": "Authentication credentials were not provided."
}
Which python package needs to install to use http in terminal?
If you are asking about 'import requests' then run pip install requests This allows you to send HTTP requests using Python.
@@geekyshows When doing http request in terminal then getting error as "The term http is not recognised as the name of a cmdlet, function, script file, or operable program."
And in CMD it is giving error as "http is not recognized as an internal or external command, operable program or batch file."
What to be done help please.
@@omkarsutar578 Open Python Terminal then import requests then make http request e.g. requests.get ()
@@geekyshows Thank you.
Hii. great video. Can you please tell how can i get other fields with simple-jwt token (eg. username, first_name, last_name)
sir please upload more videos i completed all
Create video on Oauth sir jee
hey everyone why we need to pass this token with inserting deleting and updating time . we will be need only at the time of logging or acces the data but why we need inserting time?
please help anybody?
how to authenticate with postman..please sir postman ka use kaise kre...or sir isme login kaise krenge..login credential solve kaise hoga..
Nice info 🔥🔥🙏🙏
can you please share requirements.txt used in this video
All PPT and Source Code available on official website www.geekyshows.com
@@geekyshows can you please share the link of the post I'm unable to find it
dont use this command line way to verify or refresh token, you can browse these urls directly in browser and you will be redirected to drf's default page
❤❤❤❤
Bhai Djoser pe video bana do 🙏🏽
please help me with this error : "from jwt import InvalidAlgorithmError, InvalidTokenError, algorithms
ImportError: cannot import name 'InvalidAlgorithmError' from 'jwt' "
Error at 30:40 command: AttributeError: type object 'BlacklistedToken' has no attribute 'objects' got this error while verifying the token, ye error hat hi nahi rha hai. Bohot try kiya google bhi kar liya but kuch nahi mila. Need a little help.
Natwarking ke bara me bataya please complete course natwarking
Interesting :)
Sir, please make a video of auth 2.0 in drf
Bro please tell us about custom User model Or User related stuff in django.
Please bro
Lekin ye sab aap terminal me kyun kar rhe hai jaise normal chrome me karte the wese kyun nhi matlv baki crud operation aur baki sab jese chrome me kiye the
You may need frontend or other tool to perform few operation I do not want to make it complicated including any frontend lib e.g. reactjs or any tool e.g. postman so using simple terminal. Just keep following the playlist u will understand it each and everything clearly.
Tumhare vedio ka sound bahut kaam hota hai. usse bhi dhyan de
Sir how can we pass data through html in api
Http is not recognised as an external command
httpie pahele install karo
I am getting server error(500) in response please anyone help
Server Error (500)
Server Error (500)
when generating gettoken I got an error ====
http: error: ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): M
ax retries exceeded with url: /gettoken/ (Caused by NewConnectionError(': Failed to establish a
new connection: [WinError 10061] No connection could be made because the target
machine actively refused it')) while doing a POST request to URL: 127.0.0
.1:8000/gettoken/
you have to run server while generating token, than you will get token.
where is the code?
download source code + study material from geekyshows.com
@@geekyshows thanks sir , I have one simple question, I saw your video on project of jwt authentication, in which you generated the token manually , but you didn't added the function to handle refresh token, and verify. in this video you just showed that we can add three api for generating, refreshing and verifying but in the project video you didn't do so , I am very much confused now, please guide me
@sumitrathor9929 I cant actually recall that video as i have created it long ago but To handle expired token, verify and refresh token you need to create interceptor on the frontend side which will intercept the request to verify whether token is expired or not If token is expired then it will refresh the token and update the access token then request-response cycle will complete. I would request you to watch my recent session authentication video to have clear concept about it where i used interceptor on the frontend But as its session authentication so there is no token involved but the logic will remain same for the interceptor.
30:00
9:10
worst tutorial, atleast he should have used postman to show requests
Not everyone knows Postman I try to stick to core as much as possible so i used http to make request. Whether you use postman or swagger or axios or fetch, at the end you make http request. so always Learn core Never depend on a Tool to learn another tool. Suppose tomorrow Postman get removed or dead then this tutorial will become completely useless. You can follow this ua-cam.com/video/lo7lBD9ynVc/v-deo.html