Registry / web-framework / fastapi-cloudauth

fastapi-cloudauth

JSON →
library0.4.3pypypi✓ verified 34d ago

FastAPI integration with cloud authentication services (AWS Cognito, Auth0, Firebase Authentication). Current version 0.4.3. Low release cadence, last release Dec 2021.

web-frameworkauth-securityawsgcp
Install & Compatibility
Where this runs
tested against v0.4.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 2.222s · 53.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 5.6s · import 2.021s · 53MB
53MB installed
● package 53MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Auth0 is in a submodule, not top-level.

from fastapi_cloudauth.auth0 import Auth0

Cognito is in a submodule.

from fastapi_cloudauth.cognito import Cognito

Firebase is in a submodule.

from fastapi_cloudauth.firebase import Firebase

CurrentUser is in base module.

from fastapi_cloudauth.base import CurrentUser

Basic Auth0 integration; replace domain and audience with your values.

from fastapi import FastAPI, Depends from fastapi_cloudauth.auth0 import Auth0 app = FastAPI() auth = Auth0(domain='your-domain.auth0.com', audience='your-audience') @app.get("/secure") def secure_route(user: dict = Depends(auth.get_user)): return {"user": user}
Debug
Known footguns
breakingv0.3.0 changed Auth0's default scope key from 'scope' to 'permissions'. If you rely on the old key, update your RBAC settings.
gotchaImporting from top-level 'fastapi_cloudauth' (e.g., `from fastapi_cloudauth import Auth0`) raises ImportError. Providers are in submodules.
deprecatedLibrary is in maintenance mode; no major updates since 2021. Not compatible with FastAPI 0.100+ (uses deprecated `jsonable_encoder` behavior).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
18 hits · last 30 days
gptbot
4
ahrefsbot
3
claudebot
3
amazonbot
2
script
1
bytedance
1
Resources