# jazzband/django-two-factor-auth

Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.

Repository: https://github.com/jazzband/django-two-factor-auth
Canonical: https://ross.abutalabs.com/products/django-two-factor-auth
Language: Python
License: MIT
License Family: permissive
Topics: two-factor-authentication, django, authentication
Last push: 2026-08-25T00:53:01+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 49, longevity 100
- inputs: {"age_days": 5104, "days_push": 9, "days_rel": 340, "gap_med": 0, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1878, forks 458 (observed 2026-08-28T04:05:48.388605+00:00)

## What it is
A Django package providing complete two-factor authentication built on top of django-otp and Django's built-in auth framework. It supports token generator apps, SMS, phone calls, and YubiKey hardware tokens with easy integration into existing Django projects.

## Use cases
- add two-factor authentication to a django app
- enable totp login with google authenticator in django
- send 2fa codes via sms in django
- support yubikey hardware tokens for django login
- secure django admin with a second auth factor

## When to choose
- you run a Django project and want battle-tested 2FA with minimal integration effort
- you need multiple second-factor methods (TOTP, SMS, call, YubiKey)
- you want a package maintained under the Jazzband organization with regular releases

## When to avoid
- you use Flask, FastAPI, or a non-Django Python framework
- you need 2FA for a frontend-only SPA without a Django backend
- you need passkey/WebAuthn-first flows not covered by django-otp

## Facets
- artifact type: library
- maturity: active
- function: auth, security
- domain: security, web-development, backend
- platform: python
- tags: django, two-factor-authentication, otp, totp, sms, yubikey, django-otp, web-server

## Member repositories
- jazzband/django-two-factor-auth (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:48.388605+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-30T03:14:39.529662+00:00, confidence not recorded.
  - readme: https://github.com/jazzband/django-two-factor-auth (fetched 2026-08-28T04:05:48.388605+00:00, sha 624ac86fa4fb)
  - registry_pypi: https://pypi.org/pypi/django-two-factor-auth/json (fetched 2026-08-29T10:53:22.265477+00:00, sha 5955ca132d39)
- Data as of 2026-08-30T08:39:29.467469+00:00.
