65.23.0 (2026-11-25)
Note
💙 Is django-allauth’s authentication the entrance to your business? Please consider supporting its continued development by becoming a sponsor at https://allauth.org/sponsors/. Your support helps keep this project thriving!
Note worthy changes
usersessions: Added a management command (
clear_usersessions) for removing expired user sessions.usersessions: Tracking session activity now requires fewer database queries.
socialaccount: The OpenID Connect provider now supports back-channel and RP-initiated logout.
IdP: Server metadata now advertises CIMD support when enabled.
IdP: Supported scopes, authorization defaults, CIMD defaults, and DCR defaults can now be configured using
IDP_OIDC_SCOPE_CHOICES,IDP_OIDC_DEFAULT_SCOPES,IDP_OIDC_CIMD_DEFAULT_SCOPES, andIDP_OIDC_DCR_DEFAULT_SCOPES.IdP: A private key’s PEM is now parsed once per process instead of for every token signed and every JWKS request. Parsing validates the RSA key, which is computationally expensive.
Fixes
Headless: Sending a JSON payload nested more deeply than Python’s recursion limit to the headless endpoints resulted in a server error.
Security notice
Fixed rate limiting for IPv4-mapped IPv6 addresses, which could allow denial of service in affected dual-stack deployments. Thanks to Nathan Cross for reporting.
IdP: To mitigate SSRF risks, CIMD client metadata URLs are now restricted to hostnames listed in
IDP_OIDC_CIMD_ALLOWED_HOSTS. The allowlist is empty by default. Thanks to @b23r0 for reporting.
Backwards incompatible changes
IdP: Previously, omitting the
scopeparameter during authorization for clients without configured default scopes could result in tokens without any scopes. This non-standard behavior has been fixed:IDP_OIDC_DEFAULT_SCOPESis now used.IdP: DCR and CIMD now assign all server supported scopes when the
scopemetadata field is omitted, rather than assigning onlyopenid(seeIDP_OIDC_DCR_DEFAULT_SCOPESandIDP_OIDC_CIMD_DEFAULT_SCOPES).IdP: See the security notice with respect to
IDP_OIDC_CIMD_ALLOWED_HOSTSabove.
65.22.1 (2026-11-13)
Note worthy changes
Python 3.15 is officially supported now.
Security notice
Email verification claims from providers returning non-standard string values are now parsed strictly. Previously,
"false"could enable account takeover when the non-defaultSOCIALACCOUNT_EMAIL_AUTHENTICATIONsetting was enabled.
65.22.0 (2026-11-11)
Note worthy changes
Reauthentication is now possible using a login code sent to a verified email address or phone number.
The available reauthentication methods can now be configured using
ACCOUNT_REAUTHENTICATION_METHODS.There is a new setting
ACCOUNT_SIGNUP_ENABLED(default:True) to enable or disable signup.New provider: Recharge.
IdP: Authorization codes are now stored in the database instead of the cache.
Headless: Honor
USERSESSIONS_TRACK_ACTIVITYfor authenticated app requests, the Django REST framework and Django Ninja integrations, and JWT refreshes. Stateless JWT access token validation continues to skip activity tracking.Headless: The Django REST framework and Django Ninja authentication classes can now be configured to allow or reject anonymous users and invalid session tokens.
Headless: Custom response metadata can now be added using the new
populate_response_meta()adapter method.Headless: The OpenAPI specification now reflects the authentication schemes of the configured token strategy.
Security notice
Apple: Identity data from the unsigned callback payload is no longer trusted, preventing forged verified email addresses and account takeover. Thanks to Irregular (@Tomer-PL) for reporting.
MFA: The recovery code view now prevents HTTP caching of recovery codes.
IdP: Authorization codes are now redeemed atomically. As per RFC 6749, Section 10.5, reusing a code also revokes access and refresh tokens issued from the same authorization grant.
IdP: Silent authorization now only considers consent granted to the requesting client.
IdP: Token revocation is now restricted to tokens issued to the authenticated client. Revoking a refresh token also revokes access tokens issued from the same authorization grant.
IdP: PKCE now only accepts the advertised
S256challenge method.Previously, reauthentication checks were skipped when no reauthentication method was available, for example for social-only accounts without a password. Access is now denied instead.
Setting a password (e.g. using a social-only account that has no usable password) now requires reauthentication when
ACCOUNT_REAUTHENTICATION_REQUIREDis enabled.MFA: Fixed a remaining passwordless WebAuthn login path that did not enforce user verification.
MFA: With a nonzero
MFA_TOTP_TOLERANCE, a used TOTP code could briefly be reused within its tolerance window. Thanks to Zachary Satterly for reporting.
65.21.1 (2026-10-30)
Fixes
IdP: Allow resource indicators passed in an authorization request’s
resourceparameter to use URIs with a trailing slash.socialaccount: Reduced login failures when multiple authentication flows are running in parallel browser tabs. Pending provider states are now persisted eagerly and preserved when the same user logs in again.
Security notice
Fixed rate limits with multiple windows for the same scope sharing a cache entry, which could bypass longer windows and overcount requests in shorter windows. Thanks to Daniel Denson for reporting.
MFA: Passwordless WebAuthn registration and login did not consistently enforce user verification. Passkey flows now always require a PIN, biometric, or equivalent user verification. User verification for WebAuthn MFA and reauthentication can now be controlled using
MFA_WEBAUTHN_USER_VERIFICATION.
65.21.0 (2026-10-26)
Note worthy changes
To give more granular control over when reauthentication is required, two new settings are introduced:
MFA_REAUTHENTICATION_REQUIREDandSOCIALACCOUNT_REAUTHENTICATION_REQUIRED. Additionally, you can provide custom logic via the new adapter methodis_reauthentication_required().
Security notice
Headless: Reaching the phone verification attempt limit did not abort pending login/signup flows. Note that code expiry and SMS sending rate limits remained in effect. Thanks to Wenhao Wu (@d3do-23) for reporting.
MFA: Fixed an issue where authentication records from an inactive user’s passwordless WebAuthn login could carry over to a subsequent login in the same browser session, causing MFA to be skipped for the subsequent user. Thanks to Wenhao Wu (@d3do-23) for reporting.
65.20.1 (2026-10-20)
Security notice
MFA: Fixed a denial-of-service vulnerability where unauthenticated passwordless WebAuthn login attempts could consume the per-user rate limit and lock a targeted account out of TOTP authentication.
MFA: Fixed a vulnerability (introduced in 65.20.0) that allowed a TOTP code to be reused within its validity window by submitting it in an alternative representation.
65.20.0 (2026-10-16)
Note worthy changes
A recent login no longer counts for views that require reauthentication. Users must now explicitly reauthenticate.
OpenID Connect providers can now override values from the server’s discovery document using
openid_configuration_overrides.Account: Visiting signup now cancels pending login flows.
Fixes
Headless: Cached JWT signing configuration to avoid repeatedly parsing RSA keys.
MFA: Non-ASCII authentication codes no longer cause a server error.
IdP: Fixed authorization code exchanges using
client_secret_basicnot returning an ID token.Account: The password reset-by-code timeout now restarts after the code is confirmed, allowing time to choose a new password.
Account: On Python 3.15, every 404 response no longer emits a deprecation warning for
os.path.commonprefix().
Security notice
Account: Cancelling a multi-stage login did not discard authentication records already collected. When another account was subsequently logged in using the same session, records from both accounts were mingled. Aborted login flows now discard their authentication records.
Authorization state is now bound to the provider that initiated the flow, preventing it from being used at another provider’s callback.
Backwards incompatible changes
Dropped support for Python 3.10.
Custom provider implementations using the
SocialLogin.stash_state()orSocialLogin.unstash_state()methods must switch toProvider.stash_redirect_state()andProvider.unstash_redirect_state(), respectively. TheSocialLoginmethods have been removed.
65.19.7 (2026-10-01)
Security notice
The Tumblr providers (both
tumblrandtumblr_oauth2) used mutable blog names as the identifier for third-party accounts. If a blog name changed and was then claimed by another user, that user could log in to the original owner’s account. The providers now use the stable blog UUID instead. Thanks to Sanjeev Kumar for reporting.
Backwards incompatible changes
Tumblr: Existing
SocialAccountrecords will no longer be linked due to the switch to stable identifiers. You will need to manually handle this situation, see the “Account ID Change” section in the Tumblr provider docs.
65.19.6 (2026-09-30)
Security notice
The minimum OAuthLib version for the
socialaccountandidp-oidcextras is now 4.0.0, incorporating upstream security fixes for GHSA-hj66-6f7g-4r5v and GHSA-xpv3-w29h-x7cv.The Bitbucket and Pinterest providers used mutable usernames as the identifier for third-party accounts. If a username changed and was then claimed by another user, that user could log in to the original owner’s account. The providers now use stable identifiers instead. Thanks to Sanjeev Kumar for reporting.
Backwards incompatible changes
Bitbucket and Pinterest: Existing
SocialAccountrecords will no longer be linked due to the switch to stable identifiers. You will need to manually handle this situation by populatingSocialAccount.uidbased onaccount_id(Bitbucket) orid(Pinterest) located inSocialAccount.extra_data.
65.19.5 (2026-09-28)
Security notice
Account: When the potentially unsafe
ALLOWED_HOSTS = ["*"]configuration was used, arbitrary redirect URLs were considered safe, allowing open redirects. The wildcard is now ignored when validating redirect destinations. Thanks to John Tipton and Yuji Egami for reporting.Headless:
X-Session-Tokenauthentication for your own APIs (DRF / Ninja) now uses Django’s standard session auth hash check. A token is rejected after the password changes outside of the allauth password-change flow, instead of still loading the user by primary key while the session row exists.
65.19.4 (2026-09-17)
Security notice
Account: On databases with broad Unicode collations (e.g. common MySQL/MariaDB configurations), usernames such as
adminandádmin, or email addresses containing compatibility characters, could authenticate the same account while consuming different rate limit keys. This resulted in a larger than intended per account rate limit. To mitigate, matching rows are now checked against the submitted username or email address before the password is verified. On these configurations, projects using username authentication must remove Django’sModelBackendfromAUTHENTICATION_BACKENDS, as it does not perform this additional check. Thanks to Yuji Egami for reporting.
65.19.3 (2026-09-11)
Fixes
Account: The email address data migrations (
0006and0008) did not honor the database selected usingmigrate --database, potentially querying or updating the default database instead. Fixed.MFA: Fixed various race conditions involving TOTP and recovery codes.
Security notice
Headless: When
HEADLESS_JWT_STATEFUL_VALIDATION_ENABLEDis on, JWT access tokens are now rejected after the password changes outside of the allauth password-change flow (for example viaset_password()in a shell). Stateful validation now uses the same session auth hash check that refresh tokens already used.A known flaw in the built-in rate limiting was that the configured limits could be exceeded under a high volume of concurrent requests. This was documented as an acceptably small margin of error. However, as Kaya Emre Arikan (kemrec) demonstrated, the limits could be substantially exceeded under a sufficiently high volume of concurrent requests. This is now fixed by serializing rate limit updates.
65.19.2 (2026-09-01)
Fixes
Headless: Posting a well-formed JSON payload that was not an object (e.g. a list or a string) to the headless endpoints resulted in a server error.
Security notice
MFA: TOTP enrollment code verification was not rate limited. Impact is limited, as to exploit this you would need to be already fully authenticated, pass (rate-limited) reauthentication, and brute force within a 30s TOTP window.
65.19.1 (2026-08-13)
Fixes
IdP: Fixed an incorrect URL reverse in the OpenID Connect authorization template. It silently resolved to an empty form action (posting back to the same URL), so the flow kept working regardless.
IdP: Redirectable errors from the authorization endpoint were not delivered to clients registered with an app native (non-http(s))
redirect_uri.
Security notice
IdP: The OpenID Connect RP-initiated logout endpoint honored any
post_logout_redirect_urithat could not be tied to a registered client, making it an open redirector. It now only redirects to URIs that can be verified as registered. The impact is low: no tokens or secrets are exposed, it merely allowed redirecting the user agent to an arbitrary URL after logout.
65.19.0 (2026-08-06)
Noteworthy changes
Officially support Django 6.1.
IdP: Added support for Client ID Metadata Document (CIMD).
IdP: Added
IDP_OIDC_REFRESH_TOKEN_EXPIRES_IN, allowing refresh tokens to expire. Combined withIDP_OIDC_ROTATE_REFRESH_TOKEN, this results in a sliding (inactivity) window. Defaults toNone(no expiry), preserving the previous behavior. Whenever a refresh token carries an expiry, its remaining lifetime is returned to the client asrefresh_expires_inin the token response.IdP: Added an
oidc_cleartokensmanagement command that deletes expired OpenID Connect tokens.IdP: Added key rotation support via
IDP_OIDC_PRIVATE_KEYS, as well as cache control for the JWKS endpoint.IdP: Added RFC 7662 OAuth 2.0 Token Introspection support.
The
jwtandcryptographydependencies are now imported lazily. Deployments that register JWT-verifying providers (e.g. Google, or OpenID Connect) - for example, no longer pay their memory cost (roughly 8-10 MiB per process) unless a token is actually verified.On the “Change Password” form, the “Forgot password?” link has been moved into the password field help text, and the “Reauthenticate” form now shows it too. As on the login form, the link can be customized via the
account/password_reset_help_text.htmltemplate.
Fixes
IdP: App native URLs wouldn’t be accepted as
post_logout_redirect_uri.IdP: Fix
IDP_OIDC_ID_TOKEN_EXPIRES_INalways returning the default value, even if set in settings.
65.18.0 (2026-05-29)
Noteworthy changes
The
password2(password confirmation) field on the set/change/reset password forms now carriesautocomplete="new-password", matchingpassword1. This allows browser and password manager “suggest strong password” features to fill both fields as a pair.IdP: Added support for Dynamic Client Registration.
IdP: Added support for
client_secret_basic.IdP: Added support for Resource Indicators (RFC 8707).
IdP: The
.well-known/openid-configurationendpoint previously derivedresponse_types_supportedandgrant_types_supportedfrom configured clients. Per RFC 8414, these fields should reflect server capabilities, not the configuration of existing clients. They are now statically derived. Additionally,scopes_supportedis now included. Use the newpopulate_server_metadata()adapter method to customize the metadata.
65.17.0 (2026-05-20)
Noteworthy changes
Added new socialaccount provider: Klaviyo.
Rate limiting now truncates IPv6 addresses to their network prefix (default
/64) to prevent bypass via address rotation. Configurable viaALLAUTH_RATE_LIMIT_IPV6_PREFIX.Added
authenticate_by_emailhook toDefaultSocialAccountAdapter, allowing customization of user lookup and email matching during social login.
Fixes
BitBucket: When using the BitBucket API, the token is passed in the headers instead of the query parameters, which no longer works since May 4th, 2026 (deprecation notice).
65.16.1 (2026-04-17)
Security notice
The
stateparameter is a critical part of the OAuth2 handshake, used to prevent CSRF attacks. The Edx, AngelList and Questrade providers were originally added withoutstatesupport, as these providers did not support it at the time. Edx and Questrade have since added support, so their configuration has been updated accordingly. AngelList is no longer operational and has been removed. Thanks to Adil Ahmadzada for reporting.
65.16.0 (2026-04-13)
Noteworthy changes
MFA: You can now configure recovery codes to be only shown once (
MFA_RECOVERY_CODES_SHOW_ONCE = True).New signals for audit trail purposes:
login_code_rejected,password_reset_code_rejected,email_verification_code_rejected(inallauth.account.signals) andauthentication_failed(inallauth.mfa.signals).
65.15.1 (2026-04-02)
Fixes
The context data for the various entrance views was inconsistent, e.g. some where missing
siteorlogin_url. Ensured all entrance views are now handed over the same base context.MFA: accessing the WebAuthn login view while already being authenticated resulted in a 500, fixed.
OAuth 1.0: Fixed an argument call order issue when performing requests.
65.15.0 (2026-03-09)
Noteworthy changes
All user facing codes (e.g. those that the user needs to manually input over at password reset, email/phone verification, login code, OIDC device codes) now follow the recommendations over at RFC 8628, Section 6.1. It uses dashed codes, such as “WDJB-MJHT”, by default. You can control the format of all codes via a new setting ALLAUTH_USER_CODE_FORMAT`, or, adjust the format per use case via one of
ACCOUNT_LOGIN_BY_CODE_FORMAT,ACCOUNT_PHONE_VERIFICATION_CODE_FORMAT,ACCOUNT_PASSWORD_RESET_BY_CODE_FORMAT,ACCOUNT_EMAIL_VERIFICATION_BY_CODE_FORMAT,IDP_OIDC_USER_CODE_FORMAT.Added optional support for requesting new login codes. See
ACCOUNT_LOGIN_BY_CODE_SUPPORTS_RESEND.
Backwards incompatible changes
Dropped support for Python 3.8 and 3.9. Both these Python versions are end-of-life.
65.14.3 (2026-02-13)
Fixes
Version 65.14.2 was not compatible with Python 3.8/3.9 due to use of an unsupported typing construct, fixed.
65.14.2 (2026-02-13)
Security notice
Rate limiting and IP address detection: as Django applications cannot reliably determine client IP addresses out of the box, you must override
get_client_ip()to match your deployment architecture. If you omitted to do so, the default implementation trustedX-Forwarded-For, which can be spoofed to bypass rate limits. Now,X-Forwarded-Foris distrusted by default. You must either configureALLAUTH_TRUSTED_PROXY_COUNT, rely onALLAUTH_TRUSTED_CLIENT_IP_HEADER, or overrideget_client_ip(). Thanks to Ayato Shitomi for reporting.
65.14.1 (2026-02-07)
Fixes
When using
ACCOUNT_CHANGE_EMAIL = True, if the user initiating the change email process had no verified email address,user.emailwould still reflect the old email address while the verification process was pending.
Security notice
SAML: When IdP initiated SSO was enabled (it is by default disabled), any URL found in the SAML
RelayStateparameter would be used to redirect to, potentially redirecting the authenticated user to a wrong site. Thanks to Ayato Shitomi and Funabiki Keisuke for reporting.
65.14.0 (2026-01-17)
Noteworthy changes
Steam: the provider now supports initiating headless logins per redirect.
Shopify: if
email_verifiedis present in the user payload, it will be used to mark the email address retrieved as verified accordingly.IdP: added support for JWT based access tokens (see
IDP_OIDC_ACCESS_TOKEN_FORMAT).IdP: added support for pointing to a custom userinfo endpoint (see
IDP_OIDC_USERINFO_ENDPOINT)For OpenID Connect providers, you can now configure the field to be used as the account ID by setting
"uid_field"in the relevantSocialApp.settings.Headless: the JWT algorithm is now configurable, supporting HS256.
Fixes
IdP: Access tokens without a user attached (client credentials) were no longer recognized in DRF/Ninja endpoints.
requestssessions are now disposed of after use to avoid resource leaks.