Description
Integrate Microsoft Entra ID (Azure AD) authentication with the FastAPI app.
Approach
Two layers:
- Easy Auth — Azure App Service built-in auth (handles login flow, token validation)
- App-level — FastAPI reads the
X-MS-TOKEN-AAD-ID-TOKEN header injected by Easy Auth
Features
- Login/logout flow via Easy Auth
- Current user info displayed in header
- Role-based access (optional, via Entra app roles)
- Local dev: mock auth middleware for testing without Azure
Acceptance criteria
Description
Integrate Microsoft Entra ID (Azure AD) authentication with the FastAPI app.
Approach
Two layers:
X-MS-TOKEN-AAD-ID-TOKENheader injected by Easy AuthFeatures
Acceptance criteria