Merge branch 'reflow'
[wolnelektury.git] / src / wolnelektury / settings / auth.py
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.
4 #
5 AUTHENTICATION_BACKENDS = [
6     'django.contrib.auth.backends.ModelBackend',
7     'allauth.account.auth_backends.AuthenticationBackend',
8 ]
9 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
10 LOGIN_URL = '/uzytkownik/login/'
11
12 LOGIN_REDIRECT_URL = '/'
13
14 SOCIALACCOUNT_AUTO_SIGNUP = False
15 SOCIALACCOUNT_QUERY_EMAIL = True
16
17
18 SOCIALACCOUNT_PROVIDERS = {
19     'openid': {
20         'SERVERS': [{
21             'id': 'google',
22             'name': 'Google',
23             'openid_url': 'https://www.google.com/accounts/o8/id'}],
24     },
25 }