From ef53009c382ec9c74d4d4b321f55b503857b086d Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Thu, 11 Nov 2021 11:16:03 +0100 Subject: [PATCH] Add login using NoteKfet21 --- photo21/settings.py | 7 +++++++ requirements.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/photo21/settings.py b/photo21/settings.py index 5188f5c..edab721 100644 --- a/photo21/settings.py +++ b/photo21/settings.py @@ -60,6 +60,7 @@ INSTALLED_APPS = [ 'allauth', 'allauth.account', 'allauth.socialaccount', + 'allauth_note_kfet', 'crispy_forms', 'photologue_custom', 'photologue', @@ -227,6 +228,12 @@ ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_EMAIL_VERIFICATION = "mandatory" ACCOUNT_AUTHENTICATION_METHOD = "username_email" ACCOUNT_FORMS = {'signup': 'photo21.forms.CustomSignupForm'} +SOCIALACCOUNT_PROVIDERS = { + 'notekfet': { + # Fetch user profile + 'SCOPE': ['1_1'], + }, +} # Use Bootstrap forms CRISPY_TEMPLATE_PACK = 'bootstrap4' diff --git a/requirements.txt b/requirements.txt index 9dc17a5..73e53ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ django-photologue~=3.13 django-taggit>=0.24.0 django-crispy-forms~=1.7 django-allauth>=0.44 +git+https://gitlab.crans.org/bde/allauth-note-kfet.git