django-allauth

django-allauth

Open Source

Social login, MFA, and email verification for Django.

Authentication

Published 27 September 2026

Part ofDjango Django

Scores

Popularity
0/5
Learning Curve
0/5
Flexibility
0/5
Performance
0/5
Portability
0/5

About django-allauth

django-allauth is the standard third-party authentication package for Django, independently maintained (by pennersr and contributors) since 2010. It builds on top of Django's own built-in auth system — django-auth handles users, groups, and permissions; allauth adds the pieces Django doesn't ship by default: social/OAuth login across dozens of providers, email verification, password recovery flows, and multi-factor authentication.

It is the usual next step once a Django project needs social login or MFA rather than plain username/password. Because it wraps rather than replaces django.contrib.auth, projects keep Django's user model and admin integration while gaining allauth's account flows on top.

More recent releases add a headless mode that exposes the same account flows — login, signup, password reset, MFA — as a REST API instead of server-rendered templates, which is what makes allauth usable behind a React or Vue frontend or a mobile app rather than only Django's own templating. Frontend URLs for email confirmation and password-reset links are configurable separately, so the emailed links can point at the SPA instead of a Django view.

Key Features

  • Social/OAuth login for dozens of providers, plus OpenID Connect and SAML
  • Email verification and password reset flows
  • Multi-factor authentication with TOTP, recovery codes, and WebAuthn
  • Headless mode exposing account flows as a REST API for SPAs and mobile apps
  • Login by code (passwordless email sign-in)
  • Multiple email addresses per account with a primary address
  • Builds on django.contrib.auth, keeping Django's user model and admin

Pros

  • Social and OAuth login across dozens of providers with no custom OAuth flow to build
  • Handles email verification, password reset, and MFA in one package rather than stitching several together
  • Actively maintained since 2010, with broad community usage and long-term stability

Cons

  • Sizeable dependency with many settings to configure correctly for a given auth flow
  • Its templates and forms need real customization work to match a production app's design
  • Layers on top of django.contrib.auth, adding a second system to understand alongside Django's own

django-allauth Pricing

Open Source

Tech Stacks with django-allauth

HTMX + Django

Project

A server-driven web stack where Django renders HTML templates and HTMX adds dynamic interactions without writing JavaScript. Ideal for teams that want fast iteration on CRUD-heavy apps and dashboards with minimal frontend complexity.

Frontend

Backend

Programming

Databases

Hosting

Database:
Deploy on:
Authentication add-on:
CI/CD add-on:
Containerization add-on:
Observability add-on:
Email add-on:
Payments add-on:
Styling add-on:
Interactivity add-on:
Analytics add-on:

React + Django

Project

React frontend with a Django REST API backend, a popular Python full-stack combination.

Database:
Deploy on:
Authentication add-on:
CI/CD add-on:
Containerization add-on:
Observability add-on:
Email add-on:
Payments add-on:
Styling add-on:
Analytics add-on:

Django + HTML Templates

Project

Traditional Django stack using server-rendered HTML templates, with no separate JS framework needed.

Database:
Deploy on:
Authentication add-on:
CI/CD add-on:
Containerization add-on:
Email add-on:
Payments add-on:
Styling add-on:
Analytics add-on:

Tools Related to django-allauth

Part of(1)

django-allauth is a third-party authentication package for Django that layers social login, email verification, and MFA on top of Django's built-in auth.

Alternatives to django-allauth(1)

For projects that only need username/password auth without social login or MFA, Django's built-in auth system is the lighter-weight alternative to django-allauth.

Learning Resources

No resources yet — check back soon.

Tags

Open SourceSelf-hostableAuthentication

Details

Maintained
Yes
Primary language
Python
Domain
Auth
GitHub stars
10.4k
Stars updated
2026-09-23