Рет қаралды 101,141
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 Cloud Computing? Get started here with a $100 credit → www.linode.com/lp/youtube-viewers/?ifso=linodetube&SuperUser
Check out Tim's code on GitHub → github.com/techwithtim/Fast-API-Tutorial
Watch this video for an introduction to APIs → kzbin.info/www/bejne/d6OsqoCOmq2qn5I
Read the guide on choosing a Python API framework → www.linode.com/docs/guides/how-to-choose-python-api-framework/
Subscribe to get notified of new episodes as they come out → kzbin.info
#Linode #FastAPI #API #TechWithTim
Product: Linode, API, FastAPI; @TechWithTim