Setting up JWT Auth with Fast API

  Рет қаралды 38,373

It's That Ian Guy

It's That Ian Guy

3 жыл бұрын

This video covers how to set up basic JWT auth using the FastAPI framework for Python
The example code for this project can be found on GitHub here:
github.com/itsthatianguy/yout...
If you want to check out FastAPI you can check the official site here:
fastapi.tiangolo.com/

Пікірлер: 76
@amritsubramanian8384
@amritsubramanian8384 Ай бұрын
whoa... months of headache.. and now this man saved my life
@tanjimulislam4762
@tanjimulislam4762 3 жыл бұрын
Every part of concepts in now clearer to me as understandable. In this compact video you've just described all the things in just less than 10 minutes where other content-makers (honorable) will surely take not less than 1 hour to cover the topic I surmise.
@rohitpurkait6951
@rohitpurkait6951 2 жыл бұрын
This is seriously the best tutorial in FastAPI authentication.
@itsthatianguy
@itsthatianguy 2 жыл бұрын
Thanks! I really appreciate it!
@tomchilds8727
@tomchilds8727 Жыл бұрын
Thank you for taking the time to make such a clear and concise video. It's probably the most efficient tutorial I've ever watched. Explained well and straight to the point. Keep up the great work!
@dmitrypiskarev4574
@dmitrypiskarev4574 Жыл бұрын
Thank you for valuing our time and making a clear straight to the point video with no bs!
@AndrewMelnychuk0seen
@AndrewMelnychuk0seen 2 жыл бұрын
Dude this was one of the best formats for a video tutorial I have seen. It also convinced me to use FastAPI thanks.
@hikemalliday6007
@hikemalliday6007 Жыл бұрын
good stuff, I love how you explained what all the imports actually do. Most people just blaze through all that stuff
@digitalboltwebdesign
@digitalboltwebdesign 3 жыл бұрын
Thank you i tried following the official docs with jwt and had no idea how to have jwt with expiration date working properly this tutorial helped a lot thanks.
@itsthatianguy
@itsthatianguy 3 жыл бұрын
That's awesome! Glad it was helpful for you!
@ShadowAimai
@ShadowAimai 3 жыл бұрын
Short, sweet and to the point. Bless you.
@itsthatianguy
@itsthatianguy 3 жыл бұрын
Thanks! I'm trying to keep all my videos like that, no unnecessary padding!
@davidrudpedersen5622
@davidrudpedersen5622 2 жыл бұрын
Thanks a lot. This was an incredibly easy-to-understand tutorial compared to other tutorials on FastAPI authentication. I need more of this!
@amandubey5287
@amandubey5287 Жыл бұрын
You very well explained the concept in very less time, quiet impressive. Thanks
@elizabethdaly9626
@elizabethdaly9626 Жыл бұрын
Lovely clear and concise demo, thanks.
@corear
@corear 3 жыл бұрын
Very easy to follow instructions. Great video. Thanks.
@itsthatianguy
@itsthatianguy 3 жыл бұрын
Glad it was helpful, thanks for watching!
@astronemir
@astronemir Жыл бұрын
Sad that your channel didn’t take off. Thanks for the videos anyway. They are great!
@Vijay-Yarramsetty
@Vijay-Yarramsetty 3 жыл бұрын
This was by far the best explanation for jwt with bearer authentication in FastAPI. The code is pretty neat. Thank you. Please do more videos. Your way of explaining things is cool.
@itsthatianguy
@itsthatianguy 3 жыл бұрын
Thanks, I really appreciate it! I have a few more lined up that I'm working on, but if there's anything in particular you want to see covered let me know :)
@Vijay-Yarramsetty
@Vijay-Yarramsetty 3 жыл бұрын
@@itsthatianguy could you do a video on fastapi with social login? Oauth2 with google?
@ahmed_mb
@ahmed_mb 10 ай бұрын
​@@itsthatianguyhow to add oauth2 to the code ?
@miguelvalenciazuluaga1391
@miguelvalenciazuluaga1391 Жыл бұрын
You saved my life mate, cheers
@thecoeus2233
@thecoeus2233 3 жыл бұрын
very informative . great work. 👏
@BrokeBad
@BrokeBad 6 ай бұрын
Finally a no bs guide !
@talhasen4806
@talhasen4806 3 жыл бұрын
thanks a lot, super straightforward!
@halfaiden1584
@halfaiden1584 3 жыл бұрын
Totally agree!
@zeppelin0110
@zeppelin0110 2 жыл бұрын
This is just what I needed. OAuth2 is a bit of an overkill for my purposes.
@whoisprafull
@whoisprafull Жыл бұрын
Awesome contact very concise Thanks a lot bro 👍
@python360
@python360 2 жыл бұрын
Nice English channel, hope you get to 1000 soon! Subscribed.
@varunmamtora9933
@varunmamtora9933 3 жыл бұрын
Dude, you are just so awesome !! Thankss🙌
@itsthatianguy
@itsthatianguy 3 жыл бұрын
Thanks! Glad you enjoyed the video
@adobekarda
@adobekarda 2 жыл бұрын
Fast, clear and no BS. Not a typography class like those kids do these days. Thanks.
@eldeviante
@eldeviante 2 жыл бұрын
Very nice! Well done.
@stevenondieki5498
@stevenondieki5498 2 жыл бұрын
wow.this is so nice. nice and precise.
@noorzaibchohan1200
@noorzaibchohan1200 5 сағат бұрын
well explained. if you have implemented more and detail about the each step involved and the context behind it. this would be an exceptional.
@gamagedotme536
@gamagedotme536 4 күн бұрын
you save my entire day ...
@faraziqbal9121
@faraziqbal9121 2 жыл бұрын
Great video! Cheers
@jeevithachouta2646
@jeevithachouta2646 2 жыл бұрын
Thank you so much
@danillomeira2419
@danillomeira2419 2 жыл бұрын
great video, one question: but what if I want to implement a refresh token , how can I do it?
@berkesezgin5202
@berkesezgin5202 2 жыл бұрын
@incompetent_ian How do you handle logout when using pyjwt. I want to make user logout and expire the token manually when doing that.
@Ignalvarez
@Ignalvarez 3 жыл бұрын
Gracias! Esta genial
@SP-db6sh
@SP-db6sh Жыл бұрын
Eagerly waiting for your next tutorials.... What's you paused ? Plz post on Flet+FastAPI app development
@CcanCcaglar
@CcanCcaglar 3 жыл бұрын
Thanks Ian! How would you translate this to the front-end?
@rickharold7884
@rickharold7884 2 жыл бұрын
Nice!
@amandubey5287
@amandubey5287 Жыл бұрын
Hi Ian, I just wanted to know how would we implement this if we had a UI as well like a page at the register and login and when we generate the token on successful login how do we send it for authorization. Can you provide any help on that.
@reynaldoguerrero4862
@reynaldoguerrero4862 2 жыл бұрын
great job
@akashnandi6308
@akashnandi6308 2 жыл бұрын
How do you test the /protected endpoint using pytest, can you tell that also please testing the endpoints that depends on authwrapper
@princemoronfolu
@princemoronfolu Жыл бұрын
Brother, great tutorial. I was able to authenticate and use curl to test as shown in the tutorial. However I was curious as to how you would add an header to authenticate yourself via swagger.
@jpgarcia90
@jpgarcia90 2 жыл бұрын
Great video, where and how do you store your token on the fronted??
@piotrlazecki3948
@piotrlazecki3948 Жыл бұрын
great tutorial ! Thanks. BTW, have You any idea how to integrate it with Keycloak ?
@shruthiabirami232
@shruthiabirami232 2 жыл бұрын
awesome !
@user-sn3mg8wk7v
@user-sn3mg8wk7v 2 жыл бұрын
nice video, but where refresh token mechanism?
@osiris5449
@osiris5449 2 жыл бұрын
how to keep the token valid? the way it is now, it works but wouldn't the user be logged out when the token expires?
@HG-mt3vl
@HG-mt3vl 3 жыл бұрын
Can you please make a video on fastapi-redis api cache
@stealthrabbi9064
@stealthrabbi9064 2 жыл бұрын
I'm looking to authenticate with an ldap server. How is this done? Does the ldap server give me a token to my fast API app and I pass that back to the client?
@kiranpaithane3278
@kiranpaithane3278 2 жыл бұрын
I'm facing issue while creating user (using register api) on windows machine. kindly help me. Thank You in advance
@kamleshmahadule8238
@kamleshmahadule8238 2 жыл бұрын
Nice, but how to verify token in every api request method is post/get.
@firdousbhat123
@firdousbhat123 3 жыл бұрын
Can you make the tutorial of fastapi with tortoise-orm
@shruthiabirami232
@shruthiabirami232 2 жыл бұрын
how to refresh tokens after expiry
@ahmed_mb
@ahmed_mb 10 ай бұрын
now how to add oauth2 ??????
@anshuman2121
@anshuman2121 3 жыл бұрын
Hey your DP looks amazing. Can you let us know how to make that?
@itsthatianguy
@itsthatianguy 3 жыл бұрын
Haha thanks! I'm no good at making things like that myself, I got this from someone on Fiverr - www.fiverr.com/ngedit_vector
@anshuman2121
@anshuman2121 3 жыл бұрын
@@itsthatianguy If you are at this thing why not you create a tutorial for us. So, we also learn. Thanks in advance
@tigoes
@tigoes Жыл бұрын
This is how we do it
@richteraueisen4844
@richteraueisen4844 3 жыл бұрын
so after 15 minutes the user would have to login again?
@neutronstar6739
@neutronstar6739 2 жыл бұрын
Well yes, but the solution would be to make 2 types of token, 1 is the access token shown, and 1 is the refresh token, the refresh token would be longer, which the user can use to refresh the access token when the time is up
@eugene1965
@eugene1965 Жыл бұрын
It won't work if test it in the swagger
@robsonjunior2483
@robsonjunior2483 3 жыл бұрын
My token is ...Cg023Q8 if I put ...Cg023Q7 it returns "Invalid token" but if I put ...Cg023Q9 it works. But it shouldn't work because as you can see my token ends with 8
@youtubegarbage4u
@youtubegarbage4u 3 жыл бұрын
where is database? storing stuffs in a list? how long does it take to add database? to make tutorial more useful
@itsthatianguy
@itsthatianguy 3 жыл бұрын
I try and keep the videos really focused, and just cover one thing most of the time I covered setting up a database in a separate video before this which you can find here: kzfaq.info/get/bejne/gtBnnNmputy3n5s.html Figured covering that again here would slow things down for people that already knew that stuff
@carlfranz6805
@carlfranz6805 2 жыл бұрын
I like the way you install the requisite software in small undecipherable text as quickly as possible so your viewer can't see. How about simply listing the prerequisites in the video description along the github and FastAPI websites. The first thing I taught in my 'Given Tech Presentations' class is to always keep in mind your audience. The second is to teach to the lowest common denominator. Not 'stupid' but perhaps just tired from a long day. Give how much I liked and appreciated your 'pygame state machine' stuff (and use it)... in the first 13 seconds you lost/irritated your class.
4 Tips for Building a Production-Ready FastAPI Backend
27:02
ArjanCodes
Рет қаралды 52 М.
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4,2 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 13 МЛН
JWT Authentication for React and FastAPI (easy with code)
11:51
Eric Roby
Рет қаралды 4,3 М.
FastAPI Authentication with  JWT (JSON Web Tokens)
56:18
Bek Brace
Рет қаралды 94 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 151 М.
Forms and File Uploads with FastAPI and Jinja2
8:27
It's That Ian Guy
Рет қаралды 13 М.
Session vs Token Authentication in 100 Seconds
2:18
Fireship
Рет қаралды 1 МЛН
CrazyCrates - How to Make a Crate (1.21)
0:58
TrueDarkLord
Рет қаралды 13
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,1 МЛН
Deploying FastAPI And PostgreSQL To Render
26:11
Ssali Jonathan
Рет қаралды 2,1 М.
Main filter..
0:15
CikoYt
Рет қаралды 13 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 157 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 2 МЛН