4
Authentication and Authorization
In this chapter of our FastAPI Cookbook, we will delve into the critical realms of authentication and authorization, laying the foundation to secure your web applications against unauthorized access.
As we navigate through this chapter, you’ll embark on a practical journey to implement a comprehensive security model in your FastAPI applications. From the basics of user registration and authentication to the integration of sophisticated OAuth2 protocols with JSON Web Token (JWT) for enhanced security, this chapter covers it all.
We will create the essential components of software as a service (SaaS) to help you learn practically how to establish user registration systems, verify users, and handle sessions efficiently. ...
Get FastAPI Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.