FastAPI User Authentication with JWT

preview_player
Показать описание
In this video we'll be going over how to authorise a user using JWT in FastAPI. A side note - this has been covered by me in the past, however I thought it would be a good idea to have a separate video for it.

The finished code can be found here:

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

👽 Join the Discord Server (link in the description)

iamrithmic
Автор

🔴 - If you enjoyed this video, please leave a like and subscribe :)

iamrithmic
Автор

sorry what is the vscode theme you are using, its cool

yusuphh.kajabukama
Автор

What if I don’t want to create and user and password in database ?
Let us suppose I will receive a token from mycrosoft or any other .
Would I still use JWT library or I would have to import the specific library in order to validate it ?

carlosaugusto-mohb
Автор

It would be great if someone could authenticate against a regular fastAPI html rendered form using JWT.

eddyizm
Автор

whats the use of _ ive seen you use it throughout the code but did not really explain why, or maybe i missed it lol

bjorncalbes
Автор

In real scenario, We can not access the database if user is not logged into the db.

you are querying the user table (for username) without logging into database?

_rameez
Автор

thanks 😊 @rithmic . one question please if you already backend db in ms sql server what kind or structure of services or orm to have secure and sync Api.

ziaddwagy
Автор

Is it possible (tried google to no avail) to use FastApi with enterprise environment where we have Active Directory logins? I would like to somehow check in FastApi backend if user is in some group or something.

songokussjcz
Автор

why don't you tell how to make a refresh token?

Chelk
Автор

if I steal the database.db, I will get those passwords anyway!! whats the point of this authentication.

FirstNameLastName-fveu
Автор

A bit confusing, too many things are used at the same time. To me hard to follow, since I am not very familiar with sqlachemy, etc..

hansfugers