--- id: aioauth version: "2.0.1" license: unclear license_treatment: permissive maintenance: active --- # aioauth — Asynchronous OAuth 2.0 framework for Python 3. License: permissive · Maintenance: active · Downloads: 85.7K/mo ## What it is and what it does aioauth is an OAuth 2.0 server framework built for Python's asyncio ecosystem. It implements the OAuth 2.0 protocol (RFC 6749) along with token introspection (RFC 7662), PKCE (RFC 7636), and OpenID support, making it suitable for building authorization servers in async web frameworks like FastAPI, Starlette, and aiohttp. The package works database-agnostic through a simple BaseStorage interface, meaning you can integrate it with MongoDB, PostgreSQL, MySQL, or Python ORMs like SQLAlchemy, gino, or databases. It exists because existing OAuth libraries like oauthlib and authlib do not natively support asyncio, making aioauth the primary option for developers building async-first authentication systems. Use it for: - Build an OAuth 2.0 authorization server for a FastAPI or Starlette application - Add token introspection and PKCE support to an existing async web service - Implement OpenID Connect authentication in an aiohttp-based microservice - Create a custom OAuth provider that works with your existing PostgreSQL or MongoDB database - Integrate OAuth 2.0 into an async application without rewriting a synchronous library ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. aioauth implements the OAuth 2.0 protocol for use with asynchronous Python frameworks like FastAPI, Starlette, and aiohttp, supporting multiple RFCs including token introspection, PKCE, and OpenID. Yes, with conditions. The package is actively maintained, has low install friction, and fills a genuine gap for async OAuth 2.0 support. However, the 'Development Status :: 1 - Planning' classifier raises questions about production readiness despite recent activity. Verify stability requirements for your use case before deploying to production. ## Install pip install aioauth uv add aioauth poetry add aioauth ## Installing aioauth Before you install: Low install friction with a single lightweight runtime dependency (typing_extensions). Active maintenance with a recent release 19 days ago and ongoing repository activity. License in practice: Permissive license (MIT) allows use in commercial and proprietary projects with minimal restrictions. Quickstart: pip install aioauth from aioauth import create_authorization_server # Requires implementing BaseStorage interface for your database server = create_authorization_server(storage=your_storage_instance) Requires Python 3.9 or later; you must implement the BaseStorage interface for your chosen database (MongoDB, PostgreSQL, MySQL, etc.) or ORM. Verify before relying: - Whether the package is production-ready despite 'Development Status :: 1 - Planning' classifier - Specific performance characteristics or throughput limits for token operations - Whether all four supported RFCs are fully tested and documented ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 85.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags async oauth 2.0 framework, asyncio oauth implementation, fastapi oauth server, asynchronous authentication protocol, oauth 2.0 rfc compliance, async token management, openid support python, async-first, oauth2-server, asyncio [View on SkillFed](https://skillfed.io/packages/aioauth) · [View on PyPI](https://pypi.org/project/aioauth/)