Debian Codegraph @

ChangeLog.rst

raw
1 65.19.1 (2026-08-13)
2 ********************
3
4 .. note::
5
6 💙 **Is django-allauth's authentication the entrance to your business?**
7 Please consider supporting its continued development by becoming a sponsor at
8 https://allauth.org/sponsors/. Your support helps keep this project thriving!
9
10
11 Fixes
12 -----
13
14 - IdP: Fixed an incorrect URL reverse in the OpenID Connect authorization
15 template. It silently resolved to an empty form action (posting back to the
16 same URL), so the flow kept working regardless.
17
18 - IdP: Redirectable errors from the authorization endpoint were not delivered to
19 clients registered with an app native (non-http(s)) ``redirect_uri``.
20
21
22 Security notice
23 ---------------
24
25 - IdP: The OpenID Connect RP-initiated logout endpoint honored any
26 ``post_logout_redirect_uri`` that could not be tied to a registered client,
27 making it an open redirector. It now only redirects to URIs that can be
28 verified as registered. The impact is low: no tokens or secrets are exposed,
29 it merely allowed redirecting the user agent to an arbitrary URL after logout.
30
31
32 65.19.0 (2026-08-06)
33 ********************
34
35 Noteworthy changes
36 -------------------
37
38 - Officially support Django 6.1.
39
40 - IdP: Added support for Client ID Metadata Document (CIMD).
41
42 - IdP: Added ``IDP_OIDC_REFRESH_TOKEN_EXPIRES_IN``, allowing refresh tokens to
43 expire. Combined with ``IDP_OIDC_ROTATE_REFRESH_TOKEN``, this results in a
44 sliding (inactivity) window. Defaults to ``None`` (no expiry), preserving the
45 previous behavior. Whenever a refresh token carries an expiry, its remaining
46 lifetime is returned to the client as ``refresh_expires_in`` in the token
47 response.
48
49 - IdP: Added an ``oidc_cleartokens`` management command that deletes expired
50 OpenID Connect tokens.
51
52 - IdP: Added key rotation support via ``IDP_OIDC_PRIVATE_KEYS``, as well as
53 cache control for the JWKS endpoint.
54
55 - IdP: Added RFC 7662 OAuth 2.0 Token Introspection support.
56
57 - The ``jwt`` and ``cryptography`` dependencies are now imported lazily.
58 Deployments that register JWT-verifying providers (e.g. Google, or OpenID
59 Connect) - for example, no longer pay their memory cost (roughly 8-10 MiB
60 per process) unless a token is actually verified.
61
62 - On the "Change Password" form, the "Forgot password?" link has been moved into
63 the password field help text, and the "Reauthenticate" form now shows it too.
64 As on the login form, the link can be customized via the
65 ``account/password_reset_help_text.html`` template.
66
67
68 Fixes
69 -----
70
71 - IdP: App native URLs wouldn't be accepted as ``post_logout_redirect_uri``.
72
73 - IdP: Fix ``IDP_OIDC_ID_TOKEN_EXPIRES_IN`` always returning the default value, even if set in settings.
74
75
76 65.18.0 (2026-05-29)
77 ********************
78
79 Noteworthy changes
80 -------------------
81
82 - The ``password2`` (password confirmation) field on the set/change/reset
83 password forms now carries ``autocomplete="new-password"``, matching
84 ``password1``. This allows browser and password manager "suggest strong
85 password" features to fill both fields as a pair.
86
87 - IdP: Added support for Dynamic Client Registration.
88
89 - IdP: Added support for ``client_secret_basic``.
90
91 - IdP: Added support for Resource Indicators (RFC 8707).
92
93 - IdP: The ``.well-known/openid-configuration`` endpoint previously derived
94 ``response_types_supported`` and ``grant_types_supported`` from configured
95 clients. Per RFC 8414, these fields should reflect server capabilities, not
96 the configuration of existing clients. They are now statically derived.
97 Additionally, ``scopes_supported`` is now included. Use the new
98 ``populate_server_metadata()`` adapter method to customize the metadata.
99
100
101 65.17.0 (2026-05-20)
102 ********************
103
104 Noteworthy changes
105 -------------------
106
107 - Added new socialaccount provider: Klaviyo.
108
109 - Rate limiting now truncates IPv6 addresses to their network prefix (default
110 ``/64``) to prevent bypass via address rotation. Configurable via
111 ``ALLAUTH_RATE_LIMIT_IPV6_PREFIX``.
112
113 - Added ``authenticate_by_email`` hook to ``DefaultSocialAccountAdapter``,
114 allowing customization of user lookup and email matching during social login.
115
116
117 Fixes
118 -----
119
120 - BitBucket: When using the BitBucket API, the token is passed in the headers
121 instead of the query parameters, which no longer works since May 4th, 2026
122 (`deprecation notice <https://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-3052>`__).
123
124
125 65.16.1 (2026-04-17)
126 ********************
127
128 Security notice
129 ---------------
130
131 - The ``state`` parameter is a critical part of the OAuth2 handshake, used to
132 prevent CSRF attacks. The Edx, AngelList and Questrade providers were
133 originally added without ``state`` support, as these providers did not support
134 it at the time. Edx and Questrade have since added support, so their
135 configuration has been updated accordingly. AngelList is no longer operational
136 and has been removed. Thanks to Adil Ahmadzada for reporting.
137
138
139 65.16.0 (2026-04-13)
140 ********************
141
142 Noteworthy changes
143 -------------------
144
145 - MFA: You can now configure recovery codes to be only shown once
146 (``MFA_RECOVERY_CODES_SHOW_ONCE = True``).
147
148 - New signals for audit trail purposes: ``login_code_rejected``,
149 ``password_reset_code_rejected``, ``email_verification_code_rejected`` (in
150 ``allauth.account.signals``) and ``authentication_failed`` (in
151 ``allauth.mfa.signals``).
152
153
154 65.15.1 (2026-04-02)
155 ********************
156
157 Fixes
158 -----
159
160 - The context data for the various entrance views was inconsistent, e.g. some
161 where missing ``site`` or ``login_url``. Ensured all entrance views are now
162 handed over the same base context.
163
164 - MFA: accessing the WebAuthn login view while already being authenticated resulted
165 in a 500, fixed.
166
167 - OAuth 1.0: Fixed an argument call order issue when performing requests.
168
169
170 65.15.0 (2026-03-09)
171 ********************
172
173 Noteworthy changes
174 -------------------
175
176 - All user facing codes (e.g. those that the user needs to manually input over
177 at password reset, email/phone verification, login code, OIDC device codes)
178 now follow the recommendations over at `RFC 8628, Section 6.1
179 <https://datatracker.ietf.org/doc/html/rfc8628#section-6.1>`_. It uses dashed
180 codes, such as "WDJB-MJHT", by default. You can control the format of all codes
181 via a new setting `ALLAUTH_USER_CODE_FORMAT``, or, adjust the format per use
182 case via one of ``ACCOUNT_LOGIN_BY_CODE_FORMAT``,
183 ``ACCOUNT_PHONE_VERIFICATION_CODE_FORMAT``,
184 ``ACCOUNT_PASSWORD_RESET_BY_CODE_FORMAT``,
185 ``ACCOUNT_EMAIL_VERIFICATION_BY_CODE_FORMAT``, ``IDP_OIDC_USER_CODE_FORMAT``.
186
187 - Added optional support for requesting new login codes. See
188 ``ACCOUNT_LOGIN_BY_CODE_SUPPORTS_RESEND``.
189
190
191 Backwards incompatible changes
192 ------------------------------
193
194 - Dropped support for Python 3.8 and 3.9. Both these Python versions are
195 end-of-life.
196
197
198 65.14.3 (2026-02-13)
199 ********************
200
201 Fixes
202 -----
203
204 - Version 65.14.2 was not compatible with Python 3.8/3.9 due to use of an
205 unsupported typing construct, fixed.
206
207
208 65.14.2 (2026-02-13)
209 ********************
210
211 Security notice
212 ---------------
213
214 - Rate limiting and IP address detection: as Django applications cannot reliably
215 determine client IP addresses out of the box, you must override
216 ``get_client_ip()`` to match your deployment architecture. If you omitted to
217 do so, the default implementation trusted ``X-Forwarded-For``, which can be
218 spoofed to bypass rate limits. Now, ``X-Forwarded-For`` is distrusted by
219 default. You must either configure ``ALLAUTH_TRUSTED_PROXY_COUNT``, rely on
220 ``ALLAUTH_TRUSTED_CLIENT_IP_HEADER``, or override ``get_client_ip()``. Thanks
221 to Ayato Shitomi for reporting.
222
223
224 65.14.1 (2026-02-07)
225 ********************
226
227 Fixes
228 -----
229
230 - When using ``ACCOUNT_CHANGE_EMAIL = True``, if the user initiating the change
231 email process had no verified email address, ``user.email`` would still
232 reflect the old email address while the verification process was pending.
233
234 Security notice
235 ---------------
236
237 - SAML: When IdP initiated SSO was enabled (it is by default disabled), any URL
238 found in the SAML ``RelayState`` parameter would be used to redirect to,
239 potentially redirecting the authenticated user to a wrong site. Thanks to
240 Ayato Shitomi and Funabiki Keisuke for reporting.
241
242
243 65.14.0 (2026-01-17)
244 ********************
245
246 Noteworthy changes
247 -------------------
248
249 - Steam: the provider now supports initiating headless logins per
250 redirect.
251
252 - Shopify: if ``email_verified`` is present in the user payload, it will be used
253 to mark the email address retrieved as verified accordingly.
254
255 - IdP: added support for JWT based access tokens (see
256 ``IDP_OIDC_ACCESS_TOKEN_FORMAT``).
257
258 - IdP: added support for pointing to a custom userinfo endpoint (see
259 ``IDP_OIDC_USERINFO_ENDPOINT``)
260
261 - For OpenID Connect providers, you can now configure the field to be used as
262 the account ID by setting ``"uid_field"`` in the relevant
263 ``SocialApp.settings``.
264
265 - Headless: the JWT algorithm is now configurable, supporting HS256.
266
267
268 Fixes
269 -----
270
271 - IdP: Access tokens without a user attached (client credentials) were no longer
272 recognized in DRF/Ninja endpoints.
273
274 - ``requests`` sessions are now disposed of after use to avoid resource leaks.