Quickly Authenticate Users with FastAPI and Token Authentication

Akamai Developer February 8, 2023
Video Thumbnail
Akamai Developer Logo

Akamai Developer

@akamaideveloper

About

Welcome to Akamai Developer, where you'll discover expert tutorials on AI, cloud computing, serverless, and platform engineering! Subscribe now for new videos about the world’s most distributed compute platform. Check out our code samples at https://github.com/akamai-developers/

Video Description

New to Cloud Computing? Get started here with a $100 credit → https://www.linode.com/lp/youtube-viewers/?utm_source=youtube&utm_medium=dev_advocacy&utm_content=auapi_twt_02_08_23 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 Check out Tim's code on GitHub → https://github.com/techwithtim/Fast-API-Tutorial Watch this video for an introduction to APIs → https://www.youtube.com/watch?v=ArIyMXeHwi0 Read the guide on choosing a Python API framework → https://www.linode.com/docs/guides/how-to-choose-python-api-framework/ Subscribe to get notified of new episodes as they come out → https://www.youtube.com/linode?sub_confirmation=1 #Linode #FastAPI #API #TechWithTim Product: Linode, API, FastAPI; @TechWithTim

You May Also Like

Boost API Auth with These Essentials

AI-recommended products based on this video

Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14
Loading...
KINGRACK 4 Step Ladder, Sturdy Steel Step Stool with Tool Platform, Safe-Lock, Handrail, Anti-Slip Wide Pedals, Pass 800lbs Load Testing, Folding Portable Ladder for Multi-Purpose, Home Kitchen, Black Global Recycled Standard

KINGRACK 4 Step Ladder, Sturdy Steel Step Stool with Tool Platform, Safe-Lock, Handrail, Anti-Slip Wide Pedals, Pass 800lbs Load Testing, Folding Portable Ladder for Multi-Purpose, Home Kitchen, Black Global Recycled Standard

(1,607)
$113.99
50+ bought in past month
Loading...
(2 Pack) Outlet Wall Mount Holder for Google Home Mini and Google Nest Mini, A Space-Saving Accessories with Cord Management for Google Mini Smart Speaker, No Messy Wires or Screws

(2 Pack) Outlet Wall Mount Holder for Google Home Mini and Google Nest Mini, A Space-Saving Accessories with Cord Management for Google Mini Smart Speaker, No Messy Wires or Screws

(3,057)
$15.99
Prime
200+ bought in past month
Loading...
SAMSUNG 870 EVO SATA SSD 500GB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E500B/AM [Canada Version]

SAMSUNG 870 EVO SATA SSD 500GB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E500B/AM [Canada Version]

(41,678)
$74.97
FREE delivery Wed, Jun 18
400+ bought in past month
Loading...
SAMSUNG 870 EVO SATA III SSD 4TB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E4T0B/AM [Canada Version]

SAMSUNG 870 EVO SATA III SSD 4TB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E4T0B/AM [Canada Version]

(41,656)
$399.97
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
Kimwood Projector with Upgraded HiFi Speaker, [Built-in Apps] 1080P Mini Portable Projector Lower Noise Auto Keystone WiFi 6 Bluetooth 5.4 Ultra Short Throw Projectors for Big Screen in Small Room
Best Seller

Kimwood Projector with Upgraded HiFi Speaker, [Built-in Apps] 1080P Mini Portable Projector Lower Noise Auto Keystone WiFi 6 Bluetooth 5.4 Ultra Short Throw Projectors for Big Screen in Small Room

(434)
$79.99$68.79
FREE delivery Thu, Oct 16
2K+ bought in past month
Loading...
Projector Screen with Stand, Portable Projector Screen and Stand, 60 Inch 16:9, Outdoor Projection Screen, Aluminium Frame, Lightweight and Compact, Easy Setup, Idea for Home Cinema, Backyard Party.

Projector Screen with Stand, Portable Projector Screen and Stand, 60 Inch 16:9, Outdoor Projection Screen, Aluminium Frame, Lightweight and Compact, Easy Setup, Idea for Home Cinema, Backyard Party.

(1,117)
$89.00$70.75
FREE delivery Sun, Aug 10
100+ bought in past month
Loading...
Sunrad Sewing Kit for Kids Beginner Arts and Crafts, Make 9 Easy DIY Projects, Unicorn & Animal Felt Craft Educational Toys Learn to Sew, Birthday Gifts for Girls Kids Age 6-8-10-12+

Sunrad Sewing Kit for Kids Beginner Arts and Crafts, Make 9 Easy DIY Projects, Unicorn & Animal Felt Craft Educational Toys Learn to Sew, Birthday Gifts for Girls Kids Age 6-8-10-12+

(170)
$19.99
FREE delivery Sat, Jun 14 on your first order
200+ bought in past month
Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14