JWT Authentication (Project Endpoints with HTTP Bearer Auth)
In this tutorial, we dive into securing our API endpoints using HTTP Bearer Authentication. Bearer Authentication allows users to access protected endpoints by including a token in the "Authorization" header of their HTTP requests, formatted as "Bearer token".
#python #fastapi #apidevelopment
SOURCE CODE:
https://github.com/jod35/fastapi-beyo...
COURSE WEBSITE:
https://jod35.github.io/fastapi-beyon...
PLEASE DONATE TO THE CHANNEL THROUGH:
BUY ME A COFFEE:
https://buymeacoffee.com/jod35
PATREON:
/ jod35
You can also consider Becoming a member of this channel.
FOLLOW ME:
X:
https://x.com/jod35_
GITHUB:
http://github.com/jod35
TIMESTAMPS:
(00:00:00) Introduction
(00:00:59) Creating the Authorization dependency
(00:02:58) Injecting the authorization dependency in our paths
(00:05:38) Overriding the base HTTPBearer class
(00:18:05) Return user details from the user's token
(00:19:15) Conclusion