From 17a59db1df7c4ebb551e214f94b5b7c67120625d Mon Sep 17 00:00:00 2001 From: CJ Green <44074998+okaycj@users.noreply.github.com> Date: Thu, 6 Apr 2023 16:47:39 -0400 Subject: [PATCH] Remove unnecessary allauth package (#1155) * Remove unnecessary allauth package * Update to poetry lock file --- poetry.lock | 86 +-------------------------------------------- project/settings.py | 3 -- pyproject.toml | 1 - 3 files changed, 1 insertion(+), 89 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0479d9ade..4fd0073d9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -461,18 +461,6 @@ editorconfig = ">=0.12.2" jsbeautifier = "*" six = ">=1.13.0" -[[package]] -name = "defusedxml" -version = "0.7.1" -description = "XML bomb protection for Python stdlib modules" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -files = [ - {file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"}, - {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, -] - [[package]] name = "distlib" version = "0.3.4" @@ -522,23 +510,6 @@ url = "https://github.com/lookit/django-ace-overlay.git" reference = "master" resolved_reference = "4b174f78c6d6aaaee961e220c9461cbe74c861da" -[[package]] -name = "django-allauth" -version = "0.42.0" -description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "django-allauth-0.42.0.tar.gz", hash = "sha256:f17209410b7f87da0a84639fd79d3771b596a6d3fc1a8e48ce50dabc7f441d30"}, -] - -[package.dependencies] -Django = ">=2.0" -python3-openid = ">=3.0.8" -requests = "*" -requests-oauthlib = ">=0.3.0" - [[package]] name = "django-bitfield" version = "2.1.0" @@ -1528,23 +1499,6 @@ files = [ {file = "numpy-1.22.3.zip", hash = "sha256:dbc7601a3b7472d559dc7b933b18b4b66f9aa7452c120e87dfb33d02008c8a18"}, ] -[[package]] -name = "oauthlib" -version = "3.2.1" -description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "oauthlib-3.2.1-py3-none-any.whl", hash = "sha256:88e912ca1ad915e1dcc1c06fc9259d19de8deacd6fd17cc2df266decc2e49066"}, - {file = "oauthlib-3.2.1.tar.gz", hash = "sha256:1565237372795bf6ee3e5aba5e2a85bd5a65d0e2aa5c628b9a97b7d7a0da3721"}, -] - -[package.extras] -rsa = ["cryptography (>=3.0.0)"] -signals = ["blinker (>=1.4.0)"] -signedtoken = ["cryptography (>=3.0.0)", "pyjwt (>=2.0.0,<3)"] - [[package]] name = "pandas" version = "1.4.1" @@ -2065,25 +2019,6 @@ soap = ["zeep"] soap-alt = ["suds"] soap-fallback = ["PySimpleSOAP"] -[[package]] -name = "python3-openid" -version = "3.2.0" -description = "OpenID support for modern servers and consumers." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "python3-openid-3.2.0.tar.gz", hash = "sha256:33fbf6928f401e0b790151ed2b5290b02545e8775f982485205a066f874aaeaf"}, - {file = "python3_openid-3.2.0-py3-none-any.whl", hash = "sha256:6626f771e0417486701e0b4daff762e7212e820ca5b29fcc0d05f6f8736dfa6b"}, -] - -[package.dependencies] -defusedxml = "*" - -[package.extras] -mysql = ["mysql-connector-python"] -postgresql = ["psycopg2"] - [[package]] name = "pytz" version = "2022.1" @@ -2310,25 +2245,6 @@ urllib3 = ">=1.21.1,<1.27" socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] use-chardet-on-py3 = ["chardet (>=3.0.2,<5)"] -[[package]] -name = "requests-oauthlib" -version = "1.3.1" -description = "OAuthlib authentication support for Requests." -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -files = [ - {file = "requests-oauthlib-1.3.1.tar.gz", hash = "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"}, - {file = "requests_oauthlib-1.3.1-py2.py3-none-any.whl", hash = "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5"}, -] - -[package.dependencies] -oauthlib = ">=3.0.0" -requests = ">=2.0.0" - -[package.extras] -rsa = ["oauthlib[signedtoken] (>=3.0.0)"] - [[package]] name = "rsa" version = "4.8" @@ -2743,4 +2659,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"] [metadata] lock-version = "2.0" python-versions = ">=3.9 <3.10" -content-hash = "825d5ccedc57a65eba6723866405f4792ffcd4800f0580348fb59960fd1af5fc" +content-hash = "a8a87615b1e9cb05171b27d31906bc01864a018cbf58942862b744546f151592" diff --git a/project/settings.py b/project/settings.py index 4d2d97745..2afed8689 100644 --- a/project/settings.py +++ b/project/settings.py @@ -81,8 +81,6 @@ "django.forms", # "django.contrib.admin", "project.apps.TwoFactorAuthProtectedAdminConfig", - # "allauth.socialaccount", - # "allauth.account", ] MIDDLEWARE = [ @@ -119,7 +117,6 @@ "accounts.backends.TwoFactorAuthenticationBackend", "django.contrib.auth.backends.ModelBackend", # this is default "guardian.backends.ObjectPermissionBackend", - # "allauth.account.auth_backends.AuthenticationBackend", ) ROOT_URLCONF = "project.urls" diff --git a/pyproject.toml b/pyproject.toml index ea7fc5de4..4bfc44cab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ celery = "4.4.7" ciso8601 = "2.1.3" Django = "3.2.11" django-ace-overlay = { git = "https://github.com/lookit/django-ace-overlay.git", branch = "master" } -django-allauth = "0.42.0" django-bitfield = "2.1.0" django-bootstrap5 = "22.2" django-celery-beat = "2.0.0"