Authlib
The ultimate Python library in building OAuth and OpenID Connect servers and clients.
Install
authlib on PyPI
pip
pip install authlibuv
uv add authlibpoetry
poetry add authlibPackage facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — cryptography, joserfc |
| Maintenance | actively maintained — 99 days since the last release |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: authlib-1.7.2-py2.py3-none-any.whl
About Authlib
from the package's own PyPI description — quoted content, verbatim
<div align="center">
<picture> <source media="(prefers-color-scheme: dark)" srcset="docs/_static/dark-logo.svg" /> <img alt="Authlib" src="docs/_static/light-logo.svg" height="68" /> </picture>
Build Status (image) PyPI version (image) conda-forge version (image) PyPI Downloads (image) Code Coverage (image) Maintainability Rating (image)
</div>
The ultimate Python library in building OAuth and OpenID Connect servers. JWS, JWK, JWA, JWT are included.
Authlib is compatible with Python3.10+.
Migrations
Authlib will deprecate...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Authlib is a comprehensive Python library for building OAuth 1.0, OAuth 2.0, and OpenID Connect servers and clients, with integrated support for JWT, JWS, JWK, and JWA standards.
Low friction install with only two runtime dependencies (cryptography and joserfc). Actively maintained with a recent release 99 days ago; supports Python 3.10–3.14 and PyPy.
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
Usage
pip install authlib
from authlib.oauth2 import OAuth2Request
from authlib.jose import jwt
token = jwt.encode({'sub': 'user'}, 'secret')
Requires Python 3.10 or later; cryptography and joserfc must be installed as runtime dependencies.
Verdict: Authlib is a mature, actively maintained library with broad OAuth/OpenID Connect coverage and low install friction. No known vulnerabilities, permissive licensing, and strong spec compliance make it suitable for production authentication systems. The deprecation of authlib.jose in favor of joserfc is noted in the documentation.
Needs verification
- Whether the deprecation of authlib.jose affects current users and what the migration timeline is
- Performance characteristics and scalability limits for high-throughput OAuth server deployments
- Specific security audit history or third-party security review status
Similar packages
permissive · top 1,000 on PyPI
requests-oauthlibpermissive · top 1,000 on PyPI
posthogpermissive · top 1,000 on PyPI
python-josepermissive · top 1,000 on PyPI
oauthlibpermissive · top 1,000 on PyPI
jwcryptocopyleft · top 1,000 on PyPI
PyJWTpermissive · top 100 on PyPI
oauth2clientpermissive · top 1,000 on PyPI
supabase-authpermissive · top 1,000 on PyPI
google-auth-oauthlibpermissive · top 1,000 on PyPI