Тёмный

FastAPI Authentication Example With OAuth2, JSON Web Tokens and Tortoise ORM 

Pretty Printed
Подписаться 96 тыс.
Просмотров 103 тыс.
50% 1

In this video, I will show you how to implement authentication in your FastAPI apps. OAuth2 will be the type of authentication I demonstrate because it's very common among APIs, and I will use JSON web tokens (JWT) for the token in the OAuth flow. In addition to authentication, I'll use Tortoise ORM for the user model.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/t75
Twitter: / pretty_printed
Github: github.com/prettyprinted

Опубликовано:

 

4 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@ofranc6204
I am watching this 3 years later and it's still the best tutorial on this topic that I have found. Thanks for this.
@Vijay-Yarramsetty
@Vijay-Yarramsetty 3 года назад
so structured, so modular. lately found this channel. you are way good in explaining things. Thanks a lot.
@Smoonwalkerm
@Smoonwalkerm 3 года назад
awesome!! I was waiting for you to upload fastapi videos!!
@mbalslow
@mbalslow 3 года назад
Fantastic video, very clear and to the point! Thank you. For a follow-up video (could simply build on top of this code), it would be great to see how to implement expiration in the tokens and a (maybe automatic) refresh logic. Maybe with a dummy (just plain) HTML login page. Anyways, thanks for the great content.
@tonidelacalle
Excelent video. I wasn't expecting to get so much knowledge in just 40 minutes. And very well explained!!! Thanks a million.
@ndk87
@ndk87 3 года назад
Thanks so much! Your videos really helped me some years ago when I was coding in Python flask, and just as I start working on FastAPI you begin making videos in that area too 🙌🙌
@HitraNtheProgrammer
@HitraNtheProgrammer 3 года назад
Very educational! I'm glad I ran into your channel
@10a3asd
@10a3asd 3 года назад
Ugh man, this is great. I'm learning OAuth2 and FastAPI at the same time and this was incredibly helpful to see the pieces work from the developer side.
@TheAremoh
@TheAremoh 3 года назад
Awesome as always. How about Some front-end registration and login form to help understand this better. Just me asking for more though.
@juanfranciscolopez9968
@juanfranciscolopez9968 3 года назад
Very nice video and excellent channel!! looking forward to see how to protect FastAPI with OAuth2 but just acting as a Resource Server (and getting the token from and external Authorization Server). Thanks for sharing!
@jccorman5848
@jccorman5848 Год назад
This video actually gave me some insights into Pydantic, which I'm still trying to wrap my head around. So a tutorial using Pydantic more explicitly would be great. But you have a great back catalog already.
@Fsoza2008
@Fsoza2008 3 года назад
Real good videos man! Been real helpful
@djanthony6662
@djanthony6662 3 года назад
Awesome, thank you Anthony!
@jonxslays
@jonxslays 2 года назад
This video helped me a ton thanks dude.
@ItzSenaCrazy
@ItzSenaCrazy 3 года назад
Well explained. Ty very much!
@jarvis7698
@jarvis7698 Год назад
Not only teaches authentication but also how a tutorial should be. Excellent demonstration & to the point. Thanks a lot for this :)
@HG-mt3vl
@HG-mt3vl 3 года назад
This is what makes your video stands out from other low quality content producers
@adriancroitor5154
@adriancroitor5154 3 года назад
Thank you. You always provide a good start point for development.
@JordanCote
@JordanCote 3 года назад
Very nice introduction! Do you have a video explaining how we could extend from this example, attaching this with some other OAuth2.0 providers like Google? Thanks!
@airoomstyles
@airoomstyles Год назад
great video, thanks!
Далее
FastAPI Authentication with  JWT (JSON Web Tokens)
56:18
OAuth 2.0 explained with examples
10:03
Просмотров 113 тыс.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Просмотров 155 тыс.
What Is JWT and Why Should You Use JWT
14:53
Просмотров 1,1 млн
How to Use FastAPI: A Detailed Python Tutorial
20:38
Просмотров 223 тыс.
Authenticating a Flask API Using JSON Web Tokens
20:33
Просмотров 173 тыс.
FastAPI JWT Tutorial | How to add User Authentication
20:27
Difference between cookies, session and tokens
11:53
Просмотров 607 тыс.