# authlib/authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS, JWE, JWK, JWA, JWT included.

Repository: https://github.com/authlib/authlib
Canonical: https://ross.abutalabs.com/products/authlib
Homepage: https://authlib.org
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: oauth, oauth2, oidc, oauth2-server, oauth2-provider, openid-connect, jwt, jws, jwk, jwe, jose, flask, django
Last push: 2026-08-11T14:32:56+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 83, longevity 100
- inputs: {"age_days": 3232, "days_push": 22, "days_rel": 119, "gap_med": 17.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5406, forks 560 (observed 2026-08-28T04:09:17.688633+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: auth, authorization, cryptography
- domain: security, web-development, apis
- platform: python, cross-platform
- tags: oauth2, openid-connect, jwt, jose, flask, django, oauth-client, oauth-server, oidc

## Member repositories
- authlib/authlib (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:17.688633+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:57:47.080010+00:00, confidence not recorded.
  - readme: https://github.com/authlib/authlib (fetched 2026-08-28T04:09:17.688633+00:00, sha 67f1619ea9ac)
  - homepage: https://authlib.org (fetched 2026-08-29T08:53:04.476099+00:00, sha 0be929ba6264)
  - registry_pypi: https://pypi.org/pypi/authlib/json (fetched 2026-08-29T08:53:04.493883+00:00, sha a51d4e247907)
  - site_page: https://authlib.org/pricing (fetched 2026-08-29T08:53:04.488271+00:00, sha 27017e8553c4)
  - site_page: https://jose.authlib.org/ (fetched 2026-08-29T08:53:04.490578+00:00, sha 2501c9da13f7)
  - site_page: https://otp.authlib.org/ (fetched 2026-08-29T08:53:04.492312+00:00, sha 23ca2d5dc5fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
