1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 AUTHENTICATION_BACKENDS = [
6 'django.contrib.auth.backends.ModelBackend',
7 # 'allauth.account.auth_backends.AuthenticationBackend',
9 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
10 LOGIN_URL = '/uzytkownik/zaloguj-utworz/'
12 LOGIN_REDIRECT_URL = '/'
14 SOCIALACCOUNT_AUTO_SIGNUP = False
15 SOCIALACCOUNT_QUERY_EMAIL = True
18 SOCIALACCOUNT_PROVIDERS = {
24 'access_type': 'online',
29 'SCOPE': ['email', 'public_profile'],
30 # 'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
31 # 'INIT_PARAMS': {'cookie': True},
45 # 'EXCHANGE_TOKEN': True,
46 # 'LOCALE_FUNC': 'path.to.callable',
47 # 'VERIFIED_EMAIL': False,