FastAPI Security Add authentication and authorization to your FastAPI app via dependencies. Installation With OAuth2/OIDC support: pip install fastapi-security[oauth2] With basic auth only: pip install fastapi-security Documentation The documentation for FastAPI-Security is found here.