
django-allauth
pennersr · Authentication libraries
What is django-allauth?
django-allauth is a code library for adding accounts and social login to Django apps, not an app you run on its own. It has been public since 2010, and it exists to close the gap between local sign-up and social sign-in, which many Django packages handle separately. Development now happens on Codeberg, and the GitHub repository is a mirror that can trail it.
django-allauth is an integrated set of Django apps for authentication, registration, account management and social sign-in. It handles local and social accounts in the same flows, and supports any OpenID Connect provider, many OAuth providers and SAML 2.0.
Core capabilities
- Local accounts and social login in one set of flows.
- Any OpenID Connect provider, many OAuth 1.0 and 2.0 providers, and SAML 2.0.
- Rate limiting on by default, and protection against revealing who has an account.
Security defaults
Rate limiting is on out of the box to slow brute-force attempts. It also prevents account enumeration, so a sign-up or password reset form cannot be used to find out whether someone has an account.
- Rate limiting
- Privacy
Licence and source code
django-allauth is under the MIT licence and is published on PyPI. Its home page lists Codeberg as the source code and issue tracker. Star counts on this site come from the GitHub repository.
- MIT
- PyPI
- Codeberg
Where it fits
Use cases
- 01
Add accounts to a Django app
Let people sign in by username or email, and choose how strict email verification is, from none to mandatory.
- 02
Offer sign-in with other services
Connect GitHub, Google, Microsoft, Slack or any OpenID Connect provider, using the same account flows as local sign-ups.
- 03
Sell to businesses that need SAML
SAML 2.0 support covers the single sign-on that business customers often ask for.