Quickly Authenticate Users with FastAPI and Token Authentication
In this 2 part series on API Authentication, Tim from @TechWithTim explains how to build an authenticated API using python and Fast API. In this first episode, we’ll cover how to set up a FastAPI project and start using tokens to authenticate users. Be sure to subscribe to catch the second video in this series.
Chapters:
0:00 – Introduction
1:58 – Install Python Packages
4:36 – FastAPI import and Project Setup
7:08 – Access FastAPI documentation
8:48 – Using Query and Path Parameters
11:03 – How to Accept API Requests
13:30 – Set up API User Authentication
19:36 – Hashing and Authenticating Passwords
26:30 – Create an Access Token based on Login Data
33:50 – Writing a Token Root
40:51 – Testing Token Authorization
45:31 – Conclusion
New to Linode? Get started here with a $100 credit!
Watch this video for an introduction to APIs.
Read the guide on choosing a Python API framework.
Subscribe to get notified of new episodes as they come out.
#Linode #FastAPI #API #TechWithTim
Product: Linode, API, FastAPI; @TechWithTim ;