From 42bd80e704aec33acc29f6526586c3b5c98dbc46 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Thu, 19 Dec 2024 16:02:16 +0000 Subject: [PATCH] PC-1515: Update django-allauth requires adding a new middleware, as specified in 0.56.0 release notes https://docs.allauth.org/en/latest/release-notes/2023.html#id15 went as far as 0.58.2 for now, latest patch version after django 5.0 support was added in 0.58.0 https://docs.allauth.org/en/latest/release-notes/2023.html#id6 --- help_to_heat/settings.py | 1 + poetry.lock | 14 +++++++++----- pyproject.toml | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/help_to_heat/settings.py b/help_to_heat/settings.py index dc90d2ef..1c6dffb6 100644 --- a/help_to_heat/settings.py +++ b/help_to_heat/settings.py @@ -76,6 +76,7 @@ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", + "allauth.account.middleware.AccountMiddleware", "help_to_heat.middleware.RequestLoggingMiddleware", # at the bottom to only log requests that aren't blocked ] diff --git a/poetry.lock b/poetry.lock index 470d3577..b2c6d645 100644 --- a/poetry.lock +++ b/poetry.lock @@ -366,21 +366,25 @@ bcrypt = ["bcrypt"] [[package]] name = "django-allauth" -version = "0.54.0" +version = "0.58.2" description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication." optional = false python-versions = ">=3.7" files = [ - {file = "django-allauth-0.54.0.tar.gz", hash = "sha256:120e265f802b65738899c6cb627b827fde46a4d03067034c633f516c2adf3e3e"}, + {file = "django-allauth-0.58.2.tar.gz", hash = "sha256:b2ad19223e561ef333a54d6c03d52144b0148ce79822eaf708424a0d829f24c8"}, ] [package.dependencies] -Django = ">=2.0" +Django = ">=3.2" pyjwt = {version = ">=1.7", extras = ["crypto"]} python3-openid = ">=3.0.8" -requests = "*" +requests = ">=2.0.0" requests-oauthlib = ">=0.3.0" +[package.extras] +mfa = ["qrcode (>=7.0.0)"] +saml = ["python3-saml (>=1.15.0,<2.0.0)"] + [[package]] name = "django-cors-headers" version = "4.6.0" @@ -2018,4 +2022,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "~3.11.9" -content-hash = "7f61d6cbd9a354f345844c4be9a19f9b4c653309f335ba825ebc4ef24fb2e319" +content-hash = "a17f6010c08b5596a0477adcf8615654d35be864accdd05f6bedf26a33d35625" diff --git a/pyproject.toml b/pyproject.toml index d77ea662..1d306db3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ boto3 = "1.26.86" botocore = "1.29.86" debugpy = "1.6.7" Django = "5.1.4" -django-allauth = "0.54.0" +django-allauth = "0.58.2" django-cors-headers = "4.6.0" django-csp = "3.8" django-debug-toolbar = "4.4.6"