[damned-lies] Revert "Refs #73 - Add GNOME OpenID login through python-social-auth"
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Revert "Refs #73 - Add GNOME OpenID login through python-social-auth"
- Date: Tue, 5 Jan 2021 20:53:17 +0000 (UTC)
commit d9574849eef17113d9181995907fd9d0589165e6
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Nov 7 20:32:46 2020 +0100
Revert "Refs #73 - Add GNOME OpenID login through python-social-auth"
This reverts commit 50c63c1c746daa5ebff1fef1f29e12aa73631449.
common/backends.py | 7 -------
damnedlies/settings.py | 21 ---------------------
damnedlies/urls.py | 1 -
requirements.txt | 1 -
templates/login.html | 6 ------
5 files changed, 36 deletions(-)
---
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index 443ad8b6..1b3baa18 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -140,7 +140,6 @@ INSTALLED_APPS = [
'django.contrib.humanize',
'django.contrib.messages',
'django.contrib.staticfiles',
- 'social_django',
'common',
'languages',
'people',
@@ -151,11 +150,6 @@ INSTALLED_APPS = [
'api',
]
-AUTHENTICATION_BACKENDS = [
- 'common.backends.GNOMEOpenId',
- 'django.contrib.auth.backends.ModelBackend',
-]
-
INTERNAL_IPS=('127.0.0.1',)
SITE_DOMAIN = 'l10n.gnome.org'
@@ -163,21 +157,6 @@ SITE_DOMAIN = 'l10n.gnome.org'
LOGIN_REDIRECT_URL = '/'
LOGIN_ERROR_URL = '/' # Used by social_django
-SOCIAL_AUTH_USER_MODEL = 'people.Person'
-SOCIAL_AUTH_PIPELINE = (
- 'social_core.pipeline.social_auth.social_details',
- 'social_core.pipeline.social_auth.social_uid',
- 'social_core.pipeline.social_auth.auth_allowed',
- 'social_core.pipeline.social_auth.social_user',
- 'social_core.pipeline.user.get_username',
- # Added (not by default):
- 'social_core.pipeline.social_auth.associate_by_email',
- 'social_core.pipeline.user.create_user',
- 'social_core.pipeline.social_auth.associate_user',
- 'social_core.pipeline.social_auth.load_extra_data',
- 'social_core.pipeline.user.user_details',
-)
-
# Members of this group can edit all team's details and change team coordinatorship
ADMIN_GROUP = ''
diff --git a/damnedlies/urls.py b/damnedlies/urls.py
index 8864fff3..42fa8b37 100644
--- a/damnedlies/urls.py
+++ b/damnedlies/urls.py
@@ -77,7 +77,6 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('rss/', include('feeds.urls')),
path('api/v1/', include('api.urls')),
- path('', include('social_django.urls', namespace='social')),
]
urlpatterns += [
diff --git a/requirements.txt b/requirements.txt
index 11edd1cd..73431be6 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,6 @@
django>=3,<3.2
pillow
mysqlclient
-social-auth-app-django==4.0.0
django-debug-toolbar
markdown==3.2.2
pyicu==2.3.1 # 2.4.2 fails to compile on some platforms
diff --git a/templates/login.html b/templates/login.html
index 35e4f706..d4320946 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -29,17 +29,11 @@
</div>
</form>
-<div style="margin-top: 2em;">
- {% url 'social:begin' 'gnome' as link %}
- {% blocktrans %}Or <a href="{{ link }}">login with your GNOME account</a>{% endblocktrans %}
-</div>
-
<hr>
<p class="text-center main_feature" style="margin-bottom: 30px;">Don't have an account?</p>
{% url 'register' as link %}
<a href="{{ link }}" class="btn btn-action btn-block">{% trans "Register" %}</a>
-
<script>
document.getElementById('id_username').focus()
</script>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]