Debian Codegraph @

docs/release-notes/2025.rst

raw
1 65.13.1 (2025-11-20)
2 ********************
3
4 Noteworthy changes
5 -------------------
6
7 - Django 6.0 is now officially supported.
8
9
10 Fixes
11 -----
12
13 - Internal imports related to headless token strategies were causing (harmless)
14 deprecation warnings, fixed.
15
16 - Pending social signups stored in the session by allauth versions prior to
17 65.5.0 are not resumable by newer versions. This could cause 500s while
18 upgrading, fixed.
19
20 - Headless: the reauthentication-required response in the OpenAPI specification
21 was wrongly nested and did not match the actual implementation, fixed.
22
23
24 65.13.0 (2025-10-31)
25 ********************
26
27 Noteworthy changes
28 -------------------
29
30 - IdP: Added support for RP-Initiated Logout.
31
32 - Headless: added JWT token strategy.
33
34 - Added support for "Trust this browser?" functionality for logging in by code.
35 See ``ACCOUNT_LOGIN_BY_CODE_TRUST_ENABLED``.
36
37 - OpenID Connect: to avoid issues with client IDs containing colons,
38 ``client_secret_post`` is now preferred above ``client_secret_basic``.
39
40
41 Security notice
42 ---------------
43
44 - Both Okta and NetIQ were using ``preferred_username`` as the identifier for
45 third-party provider accounts. That value may be mutable and should therefore
46 be avoided for authorization decisions. The providers are now using ``sub``
47 instead.
48
49 - IdP: marking a user as ``is_active=False`` after having handed tokens for that
50 user while the account was still active had no effect. Fixed -- the
51 access/refresh tokens are now rejected. Thanks to Joshua Rogers for reporting
52 this and the previous issue.
53
54
55 Backwards incompatible changes
56 ------------------------------
57
58 - Headless now requires the ``headless`` extra to be installed. For example:
59 ``pip install django-allauth[headless]``.
60
61 - Okta and NetIQ: see the security notice on Okta and NetIQ. Already existing
62 ``SocialAccount`` records will no longer be linked due to the switch to
63 ``sub``. You will need to manually handle this situation either, by
64 populating ``SocialAccount.uid`` based on ``sub`` located in
65 ``SocialAccount.extra_data``,or, if you are absolutely certain the security
66 notice is of no concern for your use case, by setting ``"uid_field":
67 "preferred_username"`` in the relevant ``SocialApp.settings``.
68
69
70 65.12.1 (2025-10-16)
71 ********************
72
73 Security notice
74 ---------------
75
76 - There was a flaw in the email verification process when using
77 ``ACCOUNT_CHANGE_EMAIL = True``. If you are using this configuration, you are
78 advised to upgrade as soon as possible. Note that the default value is
79 ``False``.
80
81
82 65.12.0 (2025-10-05)
83 ********************
84
85 Noteworthy changes
86 -------------------
87
88 - Updated VK urls from "vk.com" to "vk.ru".
89
90 - Added new socialaccount provider: Discogs.
91
92 - MediaWiki: you can now setup a custom user agent to avoid getting blocked,
93 see: https://phabricator.wikimedia.org/T400119
94
95 - IdP: Added optional support for wildcards in redirect URIs and CORS origins.
96 To support this, a new field was added to the ``Client`` model. Therefore, you
97 need to run migrations for the ``allauth.idp.oidc`` app.
98
99 - Headless: an email address that was in the process of being verified by code
100 was presented in the list of email address, but could not be deleted. Now, a
101 ``DELETE`` will actually abort the process, effectively removing the pending
102 email address from the list.
103
104
105 65.11.2 (2025-09-09)
106 ********************
107
108 Fixes
109 -----
110
111 - OpenID Connect: the OpenID Connect provider was using the wrong key lookup
112 mechanism, resulting in login failures.
113
114
115 65.11.1 (2025-08-27)
116 ********************
117
118 Security notice
119 ---------------
120
121 - If you configured password to be optional (e.g. using ``ACCOUNT_SIGNUP_FIELDS
122 = ["email*", "password1"]``), then accounts would be created having a blank
123 password instead of an unusable password. If you were using this configuration
124 then you may need to manually set an unusable password for accounts created.
125
126
127 65.11.0 (2025-08-15)
128 ********************
129
130 Noteworthy changes
131 -------------------
132
133 - OpenID Connect: using ``fetch_userinfo=False`` you can now skip the additional
134 call to the userinfo endpoint. Instead, the ID token will be used.
135
136
137 Fixes
138 -----
139
140 - Headless: passwordless signup was not supported, fixed.
141
142 - Headless: when serializing the user nested dataclasses, as well as optional
143 types ended up as ``string`` type, fixed.
144
145 - When signing up with a social account no authentication record was added to
146 the session, fixed.
147
148
149 Backwards incompatible changes
150 ------------------------------
151
152 - OpenID Connect: the ID token and userinfo (when present) are now stored in
153 ``SocialAccount.extra_data``, below the respective ``"id_token"`` and
154 ``"userinfo"`` keys. Compatibility with ``extra_data`` from existing accounts
155 that do not have this new structure is retained. However, if your own project
156 expects ``extra_data`` to be in a certain format this change may impact you.
157
158
159 65.10.0 (2025-07-10)
160 ********************
161
162 Noteworthy changes
163 -------------------
164
165 - IdP: Added support for the device authorization grant.
166
167 - Headless: custom user payloads can now be properly reflected in the OpenAPI
168 specification by provider a user ``dataclass``. See the newly introduced
169 ``get_user_dataclass()`` and ``user_as_dataclass()`` adapter methods.
170
171 - Added a new signal (``authentication_step_completed``) that is emitted when an
172 individual authentication step is completed.
173
174 - MFA: Added a setting (``MFA_ALLOW_UNVERIFIED_EMAIL``) to allow unverified
175 email addresses in combination with MFA.
176
177
178 Backwards incompatible changes
179 ------------------------------
180
181 - Soundcloud: as per https://developers.soundcloud.com/blog/urn-num-to-string,
182 the provider now uses the user ``urn`` instead of the ``id`` as the ID for
183 social accounts. This change is backward incompatible. Instructions on
184 how to migrate existing social accounts can be found in the allauth provider
185 documentation for SoundCloud.
186
187
188 Fixes
189 -----
190
191 - Phone: The recently added support for phone (SMS) authentication did fully integrate
192 with third-party provider signups. For example, whether or not the phone
193 number is required was not respected during signup. Fixed.
194
195 - IdP: Token revocation failed when a single ``token_type_hint`` was passed,
196 fixed.
197
198 - The ``verified_email_required`` decorator did not support email verification
199 by code. Additionally, it did not rate limit verification emails
200 in case of GET requests. Both are fixed.
201
202 - The account adapter ``clean_email()`` method was not called when a social account
203 auto signup took place, fixed.
204
205
206 65.9.0 (2025-06-01)
207 *******************
208
209 Noteworthy changes
210 -------------------
211
212 - Added ``allauth.idp`` to the project, offering out of the box OpenID Connect
213 provider support, as well as integration with Django REST framework and Django
214 Ninja.
215
216 - Headless: the OpenAPI specification now more accurately reflects single client
217 configurations set via ``HEADLESS_CLIENTS``. When a single client is active,
218 the redundant ``{client}`` path parameter and its global definition are
219 removed from the generated schema.
220
221
222 65.8.1 (2025-05-21)
223 *******************
224
225 Fixes
226 -----
227
228 - Fixed a compatibility issue with the newly released fido2 2.0.0 package.
229
230
231 Security notice
232 ---------------
233
234 - After a successful login, the rate limits for that login were cleared,
235 allowing a succesful login on a specific IP address to be used as a means to
236 clear the login failed rate limit for that IP address. Fixed.
237
238
239 65.8.0 (2025-05-08)
240 *******************
241
242 Noteworthy changes
243 -------------------
244
245 - Fixed VK (a.k.a VK ID) social account provider. Improved its documentation.
246
247 - Added optional support for requesting new email/phone verification codes during
248 signup. See ``ACCOUNT_EMAIL_VERIFICATION_SUPPORTS_RESEND`` and
249 ``ACCOUNT_PHONE_VERIFICATION_SUPPORTS_RESEND``.
250
251 - Added optional support for changing your email or phone at the verification stage while signing up.
252 See ``ACCOUNT_EMAIL_VERIFICATION_SUPPORTS_CHANGE`` and
253 ``ACCOUNT_PHONE_VERIFICATION_SUPPORTS_CHANGE``.
254
255 - Added support for Mailcow OAuth2.
256
257
258 65.7.0 (2025-04-03)
259 *******************
260
261 Noteworthy changes
262 -------------------
263
264 - Officially support Django 5.2.
265
266 - Headless: the URL to the OpenID configuration of the provider is now exposed
267 in the provider configuration.
268
269
270 Fixes
271 -----
272
273 - Headless: when multiple login methods were enabled (e.g. both username and
274 email), the login endpoint would incorrectly return a 400
275 ``invalid_login``. Fixed.
276
277
278 65.6.0 (2025-03-27)
279 *******************
280
281 Noteworthy changes
282 -------------------
283
284 - MFA: Added support for "Trust this browser?" functionality, which presents users with MFA
285 enabled the choice to trust their browser allowing them to skip authenticating
286 per MFA on each login.
287
288
289 Fixes
290 -----
291
292 - A check is in place to verify that ``ACCOUNT_LOGIN_METHODS`` is aligned with
293 ``ACCOUNT_SIGNUP_FIELDS``. The severity level of that check has now been
294 lowered from "critical" to "warning", as there may be valid use cases for
295 configuring a login method that you are not able to sign up with. This check
296 (``account.W001``) can be silenced using Django's ``SILENCED_SYSTEM_CHECKS``.
297
298 - The setting ``ACCOUNT_LOGIN_ON_PASSWORD_RESET = True`` was not respected when using
299 password reset by code.
300
301
302 65.5.0 (2025-03-14)
303 *******************
304
305 Noteworthy changes
306 -------------------
307
308 - Added support for phone (SMS) authentication.
309
310 - Added support for resetting passwords by code, instead of a link
311 (``ACCOUNT_PASSWORD_RESET_BY_CODE_ENABLED``).
312
313 - Added support for Tumblr OAuth2.
314
315 - Simplified signup form configuration. The following settings all controlled
316 signup form: ``ACCOUNT_EMAIL_REQUIRED``, ``ACCOUNT_USERNAME_REQUIRED``,
317 ``ACCOUNT_SIGNUP_EMAIL_ENTER_TWICE``, ``ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE``.
318 This setup had its issues. For example, when email was not required it was
319 still available as an optional field, whereas the username field disappeared
320 when not required. Also, for phone/SMS support, additional settings
321 would have been required. The settings are now all deprecated, and replaced by one
322 new setting: ``ACCOUNT_SIGNUP_FIELDS``, which can be configured to
323 e.g. ``['username*', 'email', 'password1*', 'password2*']`` to indicate which
324 fields are present and required (``'*'``). This change is performed in a
325 backwards compatible manner.
326
327 - Headless: if, while signing up using a third-party provider account, there is
328 insufficient information received from the provider to automatically complete
329 the signup process, an additional step is needed to complete the missing data
330 before the user is fully signed up and authenticated. You can now perform a
331 ``GET`` request to ``/_allauth/{client}/v1/auth/provider/signup`` to obtain
332 information on the pending signup.
333
334 - Headless: OpenID Connect providers now support token authentication.
335
336 - The "Forgot your password?" help text can now be more easily customized by
337 providing your own ``"account/password_reset_help_text.html"`` template.
338
339 - Removed inline scripts, so that it becomes possible to use a strong Content
340 Security Policy.
341
342 - Headless: The OpenAPI specification now dynamically reflects the
343 ``ACCOUNT_SIGNUP_FIELDS`` configuration, as well as any custom fields you have
344 in ``ACCOUNT_SIGNUP_FORM_CLASS``.
345
346 - Added official support for Python 3.13.
347
348
349 Fixes
350 -----
351
352 - Headless: In case you had multiple apps of the same provider configured,
353 you could run into a ``MultipleObjectsReturned``. Fixed.
354
355
356 65.4.1 (2025-02-07)
357 *******************
358
359 Fixes
360 -----
361
362 - To make way for a future ``"phone"`` method, ``AUTHENTICATION_METHOD`` was
363 removed in favor of a new ``LOGIN_METHODS``. While this change was done in a
364 backwards compatible manner within allauth scope, other packages accessing
365 ``allauth.account.app_settings.AUTHENTICATION_METHOD`` would break. Fixed.
366
367
368 65.4.0 (2025-02-06)
369 *******************
370
371 Noteworthy changes
372 -------------------
373
374 - The setting ``ACCOUNT_AUTHENTICATION_METHOD: str`` (with values
375 ``"username"``, ``"username_email"``, ``"email"``) has been replaced by
376 ``ACCOUNT_LOGIN_METHODS: set[str]``. which is a set of values including
377 ``"username"`` or ``"email"``. This change is performed in a backwards
378 compatible manner.
379
380 - Headless: when ``HEADLESS_SERVE_SPECIFICATION`` is set to ``True``, the API
381 specification will be served dynamically, over at
382 ``/_allauth/openapi.(yaml|json|html)``. The
383 ``HEADLESS_SPECIFICATION_TEMPLATE_NAME`` can be configured to choose between
384 Redoc (``"headless/spec/redoc_cdn.html"``) and Swagger (
385 (``"headless/spec/swagger_cdn.html"``).
386
387 - Headless: added a new setting, ``HEADLESS_CLIENTS`` which you can use to limit
388 the types of API clients (app/browser).
389
390 - Headless: expanded the React SPA example to showcase integration with
391 Django Ninja as well as Django REST framework.
392
393 - Headless: added out of the box support for being able to use the headless
394 session tokens with Django Ninja and Django REST framework.