Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Authenticate Users with FastAPI and Token Authentication

Linode via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to build an authenticated API using Python and FastAPI in this comprehensive tutorial video. Explore the process of setting up a FastAPI project and implementing token-based user authentication. Follow along as the instructor guides you through installing necessary Python packages, configuring the project, and accessing FastAPI documentation. Discover how to use query and path parameters, handle API requests, and set up user authentication. Dive into password hashing and authentication techniques, create access tokens based on login data, and write token roots. Conclude by testing token authorization to ensure your API's security. This 46-minute video is the first part of a two-part series on API authentication, providing a solid foundation for building secure and efficient APIs with FastAPI.

Syllabus

- Introduction
- Install Python Packages
- FastAPI import and Project Setup
- Access FastAPI documentation
- Using Query and Path Parameters
- How to Accept API Requests
- Set up API User Authentication
- Hashing and Authenticating Passwords
- Create an Access Token based on Login Data
- Writing a Token Root
- Testing Token Authorization
- Conclusion

Taught by

Linode

Reviews

Start your review of Authenticate Users with FastAPI and Token Authentication

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.