authlib/authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS, JWE, JWK, JWA, JWT included. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 17.0
- age_days: 3232
- days_rel: 119
- days_push: 22
- n_releases_24m: 21
Adoption not part of the score
5406 stars · 560 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Authlib is a Python library for building OAuth 1.0/2.0 and OpenID Connect clients, authorization servers, and protected resource servers, with JOSE support (JWT, JWS, JWK, JWE). It ships framework integrations for Flask, Django, and other Python web frameworks.
Use cases
- add oauth login to a flask app
- build an oauth2 authorization server in python
- protect a python api with bearer tokens
- implement openid connect single sign-on
- encode and decode jwt tokens in python
- build an oauth2 client to call third-party apis
- issue and validate access tokens for a rest api
When to choose
- you need spec-compliant OAuth 2.0 or OpenID Connect client and server implementations in Python
- you want framework integrations for Flask or Django out of the box
- you need JWT/JOSE handling alongside OAuth in one library
When to avoid
- you only need JWT encoding/decoding - the jose module is deprecated in favor of joserfc
- you need a hosted identity provider rather than a protocol library
- your project targets Python versions older than 3.10
Facets
library · maturity stable
auth authorization cryptography security web-development apis python cross-platform oauth2 openid-connect jwt jose flask django oauth-client oauth-server oidc
6 sources
- readme: https://github.com/authlib/authlib · fetched 2026-08-28 · 67f1619ea9ac
- homepage: https://authlib.org · fetched 2026-08-29 · 0be929ba6264
- registry_pypi: https://pypi.org/pypi/authlib/json · fetched 2026-08-29 · a51d4e247907
- site_page: https://authlib.org/pricing · fetched 2026-08-29 · 27017e8553c4
- site_page: https://jose.authlib.org/ · fetched 2026-08-29 · 2501c9da13f7
- site_page: https://otp.authlib.org/ · fetched 2026-08-29 · 23ca2d5dc5fc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| authlib/authlib | main | 93 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem