1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 AUTHENTICATION_BACKENDS = [
5 'django.contrib.auth.backends.ModelBackend',
6 # 'allauth.account.auth_backends.AuthenticationBackend',
8 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
9 LOGIN_URL = '/uzytkownik/login/'
11 LOGIN_REDIRECT_URL = '/'
13 SOCIALACCOUNT_AUTO_SIGNUP = False
14 SOCIALACCOUNT_QUERY_EMAIL = True
17 SOCIALACCOUNT_PROVIDERS = {
23 'access_type': 'online',
28 'SCOPE': ['email', 'public_profile'],
29 # 'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
30 # 'INIT_PARAMS': {'cookie': True},
44 # 'EXCHANGE_TOKEN': True,
45 # 'LOCALE_FUNC': 'path.to.callable',
46 # 'VERIFIED_EMAIL': False,