Azure AD Authentication for FastAPI apps made easy.
FastAPI-Azure-Auth implements Azure AD authentication and authorization for your FastAPI APIs and OpenAPI documentation.
In the sidebar to the left you'll be able to find information on how to configure both Azure and your FastAPI application. If you need an example project, one can be found on GitHub here.
The first step is to decide whether your application should be single- or multi-tenant. You can always change this later, so if you're unsure, you should chose single-tenant.
Even though FastAPI-Azure-Auth supports both
if you're creating a new project, you should use
v2 tokens. We'll walk you through all the steps in this tutorial.
If you have a project up and running already, and want to change from
v2, you can do so in the manifest. To read about the difference between
v2 tokens, check out