# oauthlib/oauthlib

A generic, spec-compliant, thorough implementation of the OAuth request-signing logic

Repository: https://github.com/oauthlib/oauthlib
Canonical: https://ross.abutalabs.com/products/oauthlib
Homepage: https://oauthlib.readthedocs.io/en/latest/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, python3, python-3, authentication, library, oauth, oauth1, oauth2, authorization, identity, oidc, openid-connect, oidc-provider, jwt-authentication, jwt-bearer-tokens, token-based-authentication
Last push: 2026-07-14T21:42:53+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 40, longevity 100
- inputs: {"age_days": 5401, "days_push": 50, "days_rel": 439, "gap_med": 2, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2980, forks 525 (observed 2026-08-28T04:07:33.075260+00:00)

## What it is
OAuthLib is a Python framework implementing the OAuth 1.0 (RFC 5849) and OAuth 2.0 (RFC 6749) request-signing and authorization logic in a spec-compliant way. It is framework- and HTTP-library-agnostic, letting developers graft OAuth client or provider support onto any HTTP library or web framework with a thin veneer.

## Use cases
- add OAuth2 login to my Python web app
- implement an OAuth1 request-signing client
- build an OIDC provider in Python
- add OAuth support to a custom HTTP library
- validate OAuth bearer and JWT tokens
- implement OAuth2 provider endpoints for my API

## When to choose
- you need spec-compliant OAuth1/OAuth2 logic decoupled from any specific HTTP framework
- you are a library maintainer wanting to add OAuth support with minimal effort
- you need OpenID Connect or JWT bearer token handling in Python

## When to avoid
- you want a batteries-included OAuth integration for a specific framework like Django or Flask (use framework-specific wrappers like requests-oauthlib or django-oauth-toolkit)
- you need a turnkey hosted identity solution
- your project is not in Python

## Facets
- artifact type: library
- maturity: stable
- function: auth, authorization, middleware
- domain: security, web-development, apis, developer-tools
- platform: python, cross-platform
- tags: oauth1, oauth2, openid-connect, jwt, request-signing, framework-agnostic

## Member repositories
- oauthlib/oauthlib (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.075260+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-30T07:31:30.812096+00:00, confidence not recorded.
  - readme: https://github.com/oauthlib/oauthlib (fetched 2026-08-28T04:07:33.075260+00:00, sha b5881ffb2201)
  - registry_pypi: https://pypi.org/pypi/oauthlib/json (fetched 2026-08-29T09:47:08.960456+00:00, sha d436a8f7c288)
- Data as of 2026-08-30T08:39:29.467469+00:00.
