| 1 |
65.3.1 (2024-12-25) |
| 2 |
******************* |
| 3 |
|
| 4 |
Fixes |
| 5 |
----- |
| 6 |
|
| 7 |
- Headless: When using email verification by code, you could incorrectly |
| 8 |
encounter a 409 when attempting to add a new email address while logged in. |
| 9 |
|
| 10 |
- Headless: In contrast to the headed version, it was possible to remove the |
| 11 |
last 3rd party account from a user that has no usable password. Fixed. |
| 12 |
|
| 13 |
- Headless: The setting ``ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION`` was not respected, |
| 14 |
and always assumed to be ``True``. |
| 15 |
|
| 16 |
|
| 17 |
65.3.0 (2024-11-30) |
| 18 |
******************* |
| 19 |
|
| 20 |
Noteworthy changes |
| 21 |
------------------- |
| 22 |
|
| 23 |
- Added support for TOTP code tolerance (see ``MFA_TOTP_TOLERANCE``). |
| 24 |
|
| 25 |
|
| 26 |
Security notice |
| 27 |
--------------- |
| 28 |
|
| 29 |
- Authentication by email/password was vulnerable to account enumeration by |
| 30 |
means of a timing attack. Thanks to Julie Rymer for the report and the patch. |
| 31 |
|
| 32 |
|
| 33 |
65.2.0 (2024-11-08) |
| 34 |
******************* |
| 35 |
|
| 36 |
Noteworthy changes |
| 37 |
------------------- |
| 38 |
|
| 39 |
- OIDC: You can now configure whether or not PKCE is enabled per app by |
| 40 |
including ``"oauth_pkce_enabled": True`` in the app settings. |
| 41 |
|
| 42 |
- The OpenStreetMap provider is deprecated. You can set it up as an OpenID Connect provider instead. |
| 43 |
|
| 44 |
|
| 45 |
Fixes |
| 46 |
----- |
| 47 |
|
| 48 |
- A ``NoReverseMatch`` could occur when using ``ACCOUNT_LOGIN_BY_CODE_REQUIRED = |
| 49 |
True`` while ``ACCOUNT_LOGIN_BY_CODE_ENABLED = False``, fixed. |
| 50 |
|
| 51 |
- The ``PasswordResetDoneView`` did not behave correctly when using Django's |
| 52 |
``LoginRequiredMiddleware``, as it was not properly marked as |
| 53 |
``@login_not_required``. |
| 54 |
|
| 55 |
- When verifying an email address by code, the success URL was hardcoded to the |
| 56 |
email management view, instead of calling the |
| 57 |
``get_email_verification_redirect_url()`` adapter method. |
| 58 |
|
| 59 |
|
| 60 |
Security notice |
| 61 |
--------------- |
| 62 |
|
| 63 |
- Headless: ``settings.ACCOUNT_EMAIL_VERIFICATION_BY_CODE_MAX_ATTEMPTS`` was not |
| 64 |
enforced, fixed. Note that the related verification endpoint will return a |
| 65 |
409 in case the maximum limit is exceeded, as at that point the pending email |
| 66 |
verification stage is aborted. |
| 67 |
|
| 68 |
|
| 69 |
65.1.0 (2024-10-23) |
| 70 |
******************* |
| 71 |
|
| 72 |
Noteworthy changes |
| 73 |
------------------- |
| 74 |
|
| 75 |
- OAuth2/OIDC: When setting up multiple apps for the same provider, you can now |
| 76 |
configure a different scope per app by including ``"scope": [...]`` in the app |
| 77 |
settings. |
| 78 |
|
| 79 |
- Facebook login: Facebook `Limited Login |
| 80 |
<https://developers.facebook.com/docs/facebook-login/limited-login>`_ is now |
| 81 |
supported via the Headless API. When you have a Limited Login JWT obtained |
| 82 |
from the iOS SDK, you can use the Headless "provider token" flow to login with |
| 83 |
it. |
| 84 |
|
| 85 |
|
| 86 |
Fixes |
| 87 |
----- |
| 88 |
|
| 89 |
- When using ``HEADLESS_ONLY = True`` together with |
| 90 |
``ACCOUNT_REAUTHENTICATION_REQUIRED = True``, you could run into a |
| 91 |
``NoReverseMatch`` when connecting a social acount. Fixed. |
| 92 |
|
| 93 |
- In headless mode, submitting a login code when the login flow expired resulted |
| 94 |
in a 500. Fixed -- it now returns a 409. |
| 95 |
|
| 96 |
|
| 97 |
65.0.2 (2024-09-27) |
| 98 |
******************* |
| 99 |
|
| 100 |
Fixes |
| 101 |
----- |
| 102 |
|
| 103 |
- A regression occurred in the newly introduced support using |
| 104 |
``LoginRequiredMiddleware``, fixed. |
| 105 |
|
| 106 |
- For email verification by link, it is not an issue if the user runs into rate |
| 107 |
limits. The reason is that the link is session independent. Therefore, if the |
| 108 |
user hits rate limits, we can just silently skip sending additional |
| 109 |
verification emails, as the previous emails that were already sent still |
| 110 |
contain valid links. This is different from email verification by code. Here, |
| 111 |
the session contains a specific code, meaning, silently skipping new |
| 112 |
verification emails is not an option, and we must block the login instead. The |
| 113 |
latter was missing, fixed. |
| 114 |
|
| 115 |
|
| 116 |
65.0.1 (2024-09-23) |
| 117 |
******************* |
| 118 |
|
| 119 |
Fixes |
| 120 |
----- |
| 121 |
|
| 122 |
- When email verification by code was used, adding additional email addresses |
| 123 |
over at the email management page fired the ``email_added`` signal prematurely |
| 124 |
as the email address instance was still unsaved. Fixed. |
| 125 |
|
| 126 |
- The newly introduced logic to redirect to pending login stages has now been |
| 127 |
integrated in the ``RedirectAuthenticatedUserMixin`` so that the existing |
| 128 |
behavior of invoking ``get_authenticated_redirect_url()`` when already |
| 129 |
authenticated is respected. |
| 130 |
|
| 131 |
|
| 132 |
65.0.0 (2024-09-22) |
| 133 |
******************* |
| 134 |
|
| 135 |
Noteworthy changes |
| 136 |
------------------- |
| 137 |
|
| 138 |
- Added transparent support for Django's ``LoginRequiredMiddleware`` (new since |
| 139 |
Django 5.1). |
| 140 |
|
| 141 |
- The ``usersessions`` app now emits signals when either the IP address or user |
| 142 |
agent for a session changes. |
| 143 |
|
| 144 |
- Added support for signup using a passkey. See |
| 145 |
``settings.MFA_PASSKEY_SIGNUP_ENABLED``. |
| 146 |
|
| 147 |
|
| 148 |
Backwards incompatible changes |
| 149 |
------------------------------ |
| 150 |
|
| 151 |
- When the user is partially logged in (e.g. pending 2FA, or login by code), |
| 152 |
accessing the login/signup page now redirects to the pending login stage. This |
| 153 |
is similar to the redirect that was already in place when the user was fully |
| 154 |
authenticated while accessing the login/signup page. As a result, cancelling |
| 155 |
(logging out of) the pending stage requires an actual logout POST instead of |
| 156 |
merely linking back to e.g. the login page. The builtin templates handle this |
| 157 |
change transparently, but if you copied any of the templates involving the |
| 158 |
login stages you will have to adjust the cancel link into a logout POST. |
| 159 |
|
| 160 |
|
| 161 |
64.2.1 (2024-09-05) |
| 162 |
******************* |
| 163 |
|
| 164 |
Fixes |
| 165 |
----- |
| 166 |
|
| 167 |
- Verifying the email address by clicking on the link would no longer log you in, even |
| 168 |
in case of ``ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True``. |
| 169 |
|
| 170 |
|
| 171 |
Security notice |
| 172 |
--------------- |
| 173 |
|
| 174 |
- It was already the case that you could not enable TOTP 2FA if your account had |
| 175 |
unverified email addresses. This is necessary to stop a user from claiming |
| 176 |
email addresses and locking other users out. This safety check is now added to |
| 177 |
WebAuthn security keys as well. |
| 178 |
|
| 179 |
- In case a user signs in into an account using social account email |
| 180 |
authentication (``SOCIALACCOUNT_EMAIL_AUTHENTICATION``) and the email used is |
| 181 |
not verified, the password of the account is now wiped (made unusable) to |
| 182 |
prevent the person that created the account (without verifying it) from |
| 183 |
signing in. |
| 184 |
|
| 185 |
|
| 186 |
64.2.0 (2024-08-30) |
| 187 |
******************* |
| 188 |
|
| 189 |
Noteworthy changes |
| 190 |
------------------- |
| 191 |
|
| 192 |
- Verifying email addresses by means of a code (instead of a link) is now supported. |
| 193 |
See ``settings.ACCOUNT_EMAIL_VERIFICATION_BY_CODE_ENABLED``. |
| 194 |
|
| 195 |
- Added support for requiring logging in by code, so that every user logging in |
| 196 |
is required to input a login confirmation code sent by email. See |
| 197 |
``settings.ACCOUNT_LOGIN_BY_CODE_REQUIRED``. |
| 198 |
|
| 199 |
|
| 200 |
Security notice |
| 201 |
--------------- |
| 202 |
|
| 203 |
- In case an ID token is used for authentication, the JTI is now respected to |
| 204 |
prevent the possibility of replays instead of solely relying on the expiration |
| 205 |
time. |
| 206 |
|
| 207 |
|
| 208 |
64.1.0 (2024-08-15) |
| 209 |
******************* |
| 210 |
|
| 211 |
Noteworthy changes |
| 212 |
------------------- |
| 213 |
|
| 214 |
- Headless: When trying to login while a user is already logged in, you now get |
| 215 |
a 409. |
| 216 |
|
| 217 |
- Limited the maximum allowed time for a login to go through the various login |
| 218 |
stages. This limits, for example, the time span that the 2FA stage remains |
| 219 |
available. See ``settings.ACCOUNT_LOGIN_TIMEOUT``. |
| 220 |
|
| 221 |
|
| 222 |
Security notice |
| 223 |
--------------- |
| 224 |
|
| 225 |
- Headless: When a user was not fully logged in, for example, because (s)he was |
| 226 |
in the process of completing the 2FA process, calling logout would not wipe |
| 227 |
the session containing the partially logged in user. |
| 228 |
|
| 229 |
|
| 230 |
64.0.0 (2024-07-31) |
| 231 |
******************* |
| 232 |
|
| 233 |
Noteworthy changes |
| 234 |
------------------- |
| 235 |
|
| 236 |
- The 0.x.y version numbers really did not do justice to the state of the |
| 237 |
project, and we are way past the point where a version 1.0 would be |
| 238 |
applicable. Additionally, 64 is a nice round number. Therefore, the version |
| 239 |
numbering is changed from 0.x.y to x.y.z. We will use a loose form of semantic |
| 240 |
versioning. However, please be aware that feature releases may occasionally |
| 241 |
include minor documented backwards incompatibilities. Always read the release |
| 242 |
notes before upgrading. |
| 243 |
|
| 244 |
- Added support for WebAuthn based security keys and passkey login. Note that |
| 245 |
this is currently disabled by default. |
| 246 |
|
| 247 |
- Headless: The TOTP URI is now available in the MFA activation response. |
| 248 |
|
| 249 |
- Headless: When trying to sign up while a user is already logged in, you now get |
| 250 |
a 409. |
| 251 |
|
| 252 |
- Headless: You can now alter the user data payload by overriding the newly |
| 253 |
introduced ``serialize_user()`` adapter method. |
| 254 |
|
| 255 |
- Headless: The token strategy now allows for exposing refresh tokens and any |
| 256 |
other information you may need (such as e.g. ``expires_in``). |
| 257 |
|
| 258 |
- Ensured that email address, given name and family name fields are stored in |
| 259 |
the SocialAccount instance. This information was not previously saved in |
| 260 |
Amazon Cognito, Edmodo, and MediaWiki SocialAccount instances. |
| 261 |
|
| 262 |
- When multiple third-party accounts of the same provider were connected, the |
| 263 |
third-party account connections overview did not always provide a clear |
| 264 |
recognizable distinction between those accounts. Now, the |
| 265 |
``SocialAccount.__str__()`` has been altered to return the unique username or |
| 266 |
email address, rather than a non-unique display name. |
| 267 |
|
| 268 |
|
| 269 |
Backwards incompatible changes |
| 270 |
------------------------------ |
| 271 |
|
| 272 |
- Dropped support for Django 3.2, 4.0 and 4.1 (which all reached end of life). |
| 273 |
As Django 3.2 was the last to support Python 3.7, support for Python 3.7 is |
| 274 |
now dropped as well. |
| 275 |
|
| 276 |
|
| 277 |
0.63.6 (2024-07-12) |
| 278 |
******************* |
| 279 |
|
| 280 |
Security notice |
| 281 |
--------------- |
| 282 |
|
| 283 |
- When the Facebook provider was configured to use the ``js_sdk`` method the |
| 284 |
login page could become vulnerable to an XSS attack. |
| 285 |
|
| 286 |
|
| 287 |
0.63.5 (2024-07-11) |
| 288 |
******************* |
| 289 |
|
| 290 |
Fixes |
| 291 |
----- |
| 292 |
|
| 293 |
- The security fix in 0.63.4 that altered the ``__str__()`` of ``SocialToken`` |
| 294 |
caused issues within the Amazon Cognito, Atlassian, JupyterHub, LemonLDAP, |
| 295 |
Nextcloud and OpenID Connect providers. Fixed. |
| 296 |
|
| 297 |
|
| 298 |
0.63.4 (2024-07-10) |
| 299 |
******************* |
| 300 |
|
| 301 |
Security notice |
| 302 |
--------------- |
| 303 |
|
| 304 |
- The ``__str__()`` method of the ``SocialToken`` model returned the access |
| 305 |
token. As a consequence, logging or printing tokens otherwise would expose the |
| 306 |
access token. Now, the method no longer returns the token. If you want to |
| 307 |
log/print tokens, you will now have to explicitly log the ``token`` field of |
| 308 |
the ``SocialToken`` instance. |
| 309 |
|
| 310 |
- Enumeration prevention: the behavior on the outside of an actual signup versus |
| 311 |
a signup where the user already existed was not fully identical, fixed. |
| 312 |
|
| 313 |
|
| 314 |
0.63.3 (2024-05-31) |
| 315 |
******************* |
| 316 |
|
| 317 |
Noteworthy changes |
| 318 |
------------------- |
| 319 |
|
| 320 |
- In ``HEADLESS_ONLY`` mode, the ``/accounts/<provider>/login/`` URLs were still |
| 321 |
available, fixed. |
| 322 |
|
| 323 |
- The few remaining OAuth 1.0 providers were not compatible with headless mode, |
| 324 |
fixed. |
| 325 |
|
| 326 |
- Depending on where you placed the ``secure_admin_login(admin.site.login)`` |
| 327 |
protection you could run into circular import errors, fixed. |
| 328 |
|
| 329 |
|
| 330 |
Backwards incompatible changes |
| 331 |
------------------------------ |
| 332 |
|
| 333 |
- SAML: IdP initiated SSO is disabled by default, see security notice below. |
| 334 |
|
| 335 |
|
| 336 |
Security notice |
| 337 |
--------------- |
| 338 |
|
| 339 |
- SAML: ``RelayState`` was used to keep track of whether or not the login flow |
| 340 |
was IdP or SP initiated. As ``RelayState`` is a separate field, not part of |
| 341 |
the ``SAMLResponse`` payload, it is not signed and thereby making the SAML |
| 342 |
login flow vulnerable to CSRF/replay attacks. Now, ``InResponseTo`` is used |
| 343 |
instead, addressing the issue for SP initiated SSO flows. IdP initiated SSO |
| 344 |
remains inherently insecure, by design. For that reason, it is now disabled by |
| 345 |
default. If you need to support IdP initiated SSO, you will need to opt-in to |
| 346 |
that by adding ``"reject_idp_initiated_sso": False`` to your advanced SAML |
| 347 |
provider settings. |
| 348 |
|
| 349 |
|
| 350 |
0.63.2 (2024-05-24) |
| 351 |
******************* |
| 352 |
|
| 353 |
Noteworthy changes |
| 354 |
------------------- |
| 355 |
|
| 356 |
- ``allauth.headless`` now supports the ``is_open_for_signup()`` adapter method. |
| 357 |
In case signup is closed, a 403 is returned during signup. |
| 358 |
|
| 359 |
- Connecting a third-party account in ``HEADLESS_ONLY`` mode failed if the |
| 360 |
connections view could not be reversed, fixed. |
| 361 |
|
| 362 |
- In case a headless attempt was made to connect a third-party account that was already |
| 363 |
connected to a different account, no error was communicated to the frontend. Fixed. |
| 364 |
|
| 365 |
- When the headless provider signup endpoint was called while that flow was not pending, |
| 366 |
a crash would occur. This has been fixed to return a 409 (conflict). |
| 367 |
|
| 368 |
- Microsoft provider: the URLs pointing to the login and graph API are now |
| 369 |
configurable via the app settings. |
| 370 |
|
| 371 |
|
| 372 |
0.63.1 (2024-05-17) |
| 373 |
******************* |
| 374 |
|
| 375 |
Noteworthy changes |
| 376 |
------------------- |
| 377 |
|
| 378 |
- When only ``allauth.account`` was installed, you could run into an exception |
| 379 |
stating "allauth.socialaccount not installed, yet its models are |
| 380 |
imported.". This has been fixed. |
| 381 |
|
| 382 |
- When ``SOCIALACCOUNT_EMAIL_AUTHENTICATION`` was turned on, and a user would |
| 383 |
connect a third-party account for which email authentication would kick in, |
| 384 |
the connect was implicitly skipped. Fixed. |
| 385 |
|
| 386 |
- The recommendation from the documentation to protect the Django admin login |
| 387 |
could cause an infinite redirect loop in case of |
| 388 |
``AUTHENTICATED_LOGIN_REDIRECTS``. A decorator ``secure_admin_login()`` is now |
| 389 |
offered out of the box to ensure that the Django admin is properly secured by |
| 390 |
allauth (e.g. rate limits, 2FA). |
| 391 |
|
| 392 |
- Subpackages from the ``tests`` package were packaged, fixed. |
| 393 |
|
| 394 |
|
| 395 |
0.63.0 (2024-05-14) |
| 396 |
******************* |
| 397 |
|
| 398 |
Noteworthy changes |
| 399 |
------------------- |
| 400 |
|
| 401 |
- New providers: TikTok, Lichess. |
| 402 |
|
| 403 |
- Starting since version 0.62.0, new email addresses are always stored as lower |
| 404 |
case. In this version, we take the final step and also convert existing data |
| 405 |
to lower case, alter the database indices and perform lookups |
| 406 |
accordingly. Migrations are in place. For rationale, see the note about email |
| 407 |
case sensitivity in the documentation. |
| 408 |
|
| 409 |
- An official API for single-page and mobile application support is now |
| 410 |
available, via the new ``allauth.headless`` app. |
| 411 |
|
| 412 |
- Added support for a honeypot field on the signup form. Real users do not see |
| 413 |
the field and therefore leave it empty. When bots do fill out the field |
| 414 |
account creation is silently skipped. |
| 415 |
|
| 416 |
|
| 417 |
0.62.1 (2024-04-24) |
| 418 |
******************* |
| 419 |
|
| 420 |
- The ``tests`` package was accidentally packaged, fixed. |
| 421 |
|
| 422 |
|
| 423 |
0.62.0 (2024-04-22) |
| 424 |
******************* |
| 425 |
|
| 426 |
Noteworthy changes |
| 427 |
------------------- |
| 428 |
|
| 429 |
- Added a dummy provider, useful for testing purposes: ``allauth.socialaccount.providers.dummy``. |
| 430 |
|
| 431 |
- Added a new provider, Atlassian |
| 432 |
|
| 433 |
- Next URL handling been streamlined to be consistently applied. Previously, the |
| 434 |
password reset, change and email confirmation views only supported the |
| 435 |
``success_url`` class-level property. |
| 436 |
|
| 437 |
- Added support for logging in by email using a special code, also known as |
| 438 |
"Magic Code Login" |
| 439 |
|
| 440 |
- Email addresses are now always stored as lower case. For rationale, see the |
| 441 |
note about email case sensitivity in the documentation. |
| 442 |
|
| 443 |
- You can now alter the ``state`` parameter that is typically passed to the |
| 444 |
provider by overriding the new ``generate_state_param()`` adapter method. |
| 445 |
|
| 446 |
- The URLs were not "hackable". For example, while ``/accounts/login/`` is valid |
| 447 |
``/accounts/`` was not. Similarly, ``/accounts/social/connections/`` was |
| 448 |
valid, but ``/accounts/social/`` resulted in a 404. This has been |
| 449 |
addressed. Now, ``/accounts/`` redirects to the login or email management |
| 450 |
page, depending on whether or not the user is authenticated. All |
| 451 |
``/accounts/social/*`` URLs are now below ``/accounts/3rdparty/*``, where |
| 452 |
``/accounts/social/connections`` is moved to the top-level |
| 453 |
``/accounts/3rdparty/``. The old endpoints still work as redirects are in |
| 454 |
place. |
| 455 |
|
| 456 |
- Added a new setting, ``SOCIALACCOUNT_ONLY``, which when set to ``True``, |
| 457 |
disables all functionality with respect to local accounts. |
| 458 |
|
| 459 |
- The OAuth2 handshake was not working properly in case of |
| 460 |
``SESSION_COOKIE_SAMESITE = "Strict"``, fixed. |
| 461 |
|
| 462 |
- Facebook: the default Graph API version is now v19.0. |
| 463 |
|
| 464 |
|
| 465 |
Backwards incompatible changes |
| 466 |
------------------------------ |
| 467 |
|
| 468 |
- The django-allauth required dependencies are now more fine grained. If you do |
| 469 |
not use any of the social account functionality, a ``pip install |
| 470 |
django-allauth`` will, e.g., no longer pull in dependencies for handling |
| 471 |
JWT. If you are using social account functionality, install using ``pip install |
| 472 |
"django-allauth[socialaccount]"``. That will install the dependencies covering |
| 473 |
most common providers. If you are using the Steam provider, install using ``pip |
| 474 |
install django-allauth[socialaccount,steam]``. |
| 475 |
|
| 476 |
|
| 477 |
0.61.1 (2024-02-09) |
| 478 |
******************* |
| 479 |
|
| 480 |
Fixes |
| 481 |
----- |
| 482 |
|
| 483 |
- Fixed a ``RuntimeWarning`` that could occur when running inside an async |
| 484 |
environment (``'SyncToAsync' was never awaited``). |
| 485 |
|
| 486 |
|
| 487 |
Security notice |
| 488 |
--------------- |
| 489 |
|
| 490 |
- As part of the Google OAuth handshake, an ID token is obtained by direct |
| 491 |
machine to machine communication between the server running django-allauth and |
| 492 |
Google. Because of this direct communication, we are allowed to skip checking |
| 493 |
the token signature according to the `OpenID Connect Core 1.0 specification |
| 494 |
<https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation>`_. |
| 495 |
However, as django-allauth is used and built upon by third parties, this is an |
| 496 |
implementation detail with security implications that is easily overlooked. To |
| 497 |
mitigate potential issues, verifying the signature is now only skipped if it |
| 498 |
was django-allauth that actually fetched the access token. |
| 499 |
|
| 500 |
|
| 501 |
0.61.0 (2024-02-07) |
| 502 |
******************* |
| 503 |
|
| 504 |
Noteworthy changes |
| 505 |
------------------- |
| 506 |
|
| 507 |
- Added support for account related security notifications. When |
| 508 |
``ACCOUNT_EMAIL_NOTIFICATIONS = True``, email notifications such as "Your |
| 509 |
password was changed", including information on user agent / IP address from where the change |
| 510 |
originated, will be emailed. |
| 511 |
|
| 512 |
- Google: Starting from 0.52.0, the ``id_token`` is being used for extracting |
| 513 |
user information. To accommodate for scenario's where django-allauth is used |
| 514 |
in contexts where the ``id_token`` is not posted, the provider now looks up |
| 515 |
the required information from the ``/userinfo`` endpoint based on the access |
| 516 |
token if the ``id_token`` is absent. |
| 517 |
|
| 518 |
|
| 519 |
Security notice |
| 520 |
--------------- |
| 521 |
|
| 522 |
- MFA: It was possible to reuse a valid TOTP code within its time window. This |
| 523 |
has now been addressed. As a result, a user can now only login once per 30 |
| 524 |
seconds (``MFA_TOTP_PERIOD``). |
| 525 |
|
| 526 |
|
| 527 |
Backwards incompatible changes |
| 528 |
------------------------------ |
| 529 |
|
| 530 |
- The rate limit mechanism has received an update. Previously, when specifying |
| 531 |
e.g. ``"5/m"`` it was handled implicitly whether or not that limit was per IP, |
| 532 |
per user, or per action specific key. This has now been made explicit: |
| 533 |
``"5/m/user"`` vs ``"5/m/ip"`` vs ``"5/m/key"``. Combinations are also supported |
| 534 |
now: ``"20/m/ip,5/m/key"`` . Additionally, the rate limit mechanism is now used |
| 535 |
throughout, including email confirmation cooldown as well as limitting failed login |
| 536 |
attempts. Therefore, the ``ACCOUNT_LOGIN_ATTEMPTS_LIMIT`` and |
| 537 |
``ACCOUNT_EMAIL_CONFIRMATION_COOLDOWN`` settings are deprecated. |
| 538 |
See :doc:`Rate Limits <../account/rate_limits>` for details. |
| 539 |
|
| 540 |
|
| 541 |
0.60.1 (2024-01-15) |
| 542 |
******************* |
| 543 |
|
| 544 |
Fixes |
| 545 |
----- |
| 546 |
|
| 547 |
- User sessions: after changing your password in case of ``ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = False``, the list of |
| 548 |
sessions woud be empty instead of showing your current session. |
| 549 |
|
| 550 |
- SAML: accessing the SLS/ACS views using a GET request would result in a crash (500). |
| 551 |
|
| 552 |
- SAML: the login view did not obey the ``SOCIALACCOUNT_LOGIN_ON_GET = False`` setting. |
| 553 |
|
| 554 |
|
| 555 |
Backwards incompatible changes |
| 556 |
------------------------------ |
| 557 |
|
| 558 |
- Formally, email addresses are case sensitive because the local part (the part |
| 559 |
before the "@") can be a case sensitive user name. To deal with this, |
| 560 |
workarounds have been in place for a long time that store email addresses in |
| 561 |
their original case, while performing lookups in a case insensitive |
| 562 |
style. This approach led to subtle bugs in upstream code, and also comes at a |
| 563 |
performance cost (``__iexact`` lookups). The latter requires case insensitive |
| 564 |
index support, which not all databases support. Re-evaluating the approach in |
| 565 |
current times has led to the conclusion that the benefits do not outweigh the |
| 566 |
costs. Therefore, email addresses are now always stored as lower case, and |
| 567 |
migrations are in place to address existing records. |
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
0.60.0 (2024-01-05) |
| 572 |
******************* |
| 573 |
|
| 574 |
Noteworthy changes |
| 575 |
------------------- |
| 576 |
|
| 577 |
- Google One Tap Sign-In is now supported. |
| 578 |
|
| 579 |
- You can now more easily change the URL to redirect to after a successful password |
| 580 |
change/set via the newly introduced ``get_password_change_redirect_url()`` |
| 581 |
adapter method. |
| 582 |
|
| 583 |
- You can now configure the primary key of all models by configuring |
| 584 |
``ALLAUTH_DEFAULT_AUTO_FIELD``, for example to: |
| 585 |
``"hashid_field.HashidAutoField"``. |
| 586 |
|
| 587 |
|
| 588 |
Backwards incompatible changes |
| 589 |
------------------------------ |
| 590 |
|
| 591 |
- You can now specify the URL path prefix that is used for all OpenID Connect |
| 592 |
providers using ``SOCIALACCOUNT_OPENID_CONNECT_URL_PREFIX``. By default, it is |
| 593 |
set to ``"oidc"``, meaning, an OpenID Connect provider with provider ID |
| 594 |
``foo`` uses ``/accounts/oidc/foo/login/`` as its login URL. Set it to empty |
| 595 |
(``""``) to keep the previous URL structure (``/accounts/foo/login/``). |
| 596 |
|
| 597 |
- The SAML default attribute mapping for ``uid`` has been changed to only |
| 598 |
include ``urn:oasis:names:tc:SAML:attribute:subject-id``. If the SAML response |
| 599 |
does not contain that, it will fallback to use ``NameID``. |