fastapi-azure-auth
Installation
SKILL.md
FastAPI Azure Entra ID Auth
OAuth2 authorization code flow using MSAL, Starlette sessions, and raw asyncpg RBAC. Designed for the init-app-stack: FastAPI + Granian + asyncpg + uv + Python 3.14.
Packages
uv add msal starlette pem
# starlette is already a fastapi dependency — just needs session middleware enabled
File structure
app/
├── auth/
│ ├── setup.py ← registers /login, /callback, /logout + AuthMiddleware
│ └── credentials.py ← returns client secret or certificate dict for MSAL
Related skills
More from bmsuisse/skills
autoresearch
>
15codeunit-analyzer
>
14deslop
>
14coding-guidelines-python
>
13init-app-stack
Use this skill whenever the user wants to bootstrap, scaffold, or initialize a new full-stack app with a Vite + React + TanStack + shadcn/ui frontend and a FastAPI + Postgres backend. Triggers on requests like "create a new app", "set up a project", "scaffold a full-stack app", "init a new project", or anything involving starting a fresh React/FastAPI application from scratch.
12databricks-sql-autotuner
>
12