X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..69f571a82cd469f4e923517066b850ce716511f6:/src/wolnelektury/settings/auth.py diff --git a/src/wolnelektury/settings/auth.py b/src/wolnelektury/settings/auth.py index 4d3ea224a..d1c6a8f4e 100644 --- a/src/wolnelektury/settings/auth.py +++ b/src/wolnelektury/settings/auth.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend', @@ -11,9 +15,11 @@ SOCIALACCOUNT_AUTO_SIGNUP = False SOCIALACCOUNT_QUERY_EMAIL = True -SOCIALACCOUNT_PROVIDERS = \ - { 'openid': - { 'SERVERS': - [dict(id='google', - name='Google', - openid_url='https://www.google.com/accounts/o8/id')]}} +SOCIALACCOUNT_PROVIDERS = { + 'openid': { + 'SERVERS': [{ + 'id': 'google', + 'name': 'Google', + 'openid_url': 'https://www.google.com/accounts/o8/id'}], + }, +}