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