forked from bioinf/django_openid_provider
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.py
More file actions
22 lines (15 loc) · 856 Bytes
/
conf.py
File metadata and controls
22 lines (15 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
from django.conf import settings
STORE = getattr(settings, 'OPENID_PROVIDER_STORE',
'openid.store.filestore.FileOpenIDStore')
if STORE == 'openid.store.filestore.FileOpenIDStore':
import tempfile
tempdir = tempfile.gettempdir()
FILESTORE_PATH = getattr(settings, 'OPENID_PROVIDER_FILESTORE_PATH',
os.path.join(tempdir, 'openid-filestore'))
SREG_DATA_CALLBACK = getattr(settings, 'OPENID_PROVIDER_SREG_DATA_CALLBACK',
'openid_provider.utils.get_default_sreg_data')
AX_DATA_CALLBACK = getattr(settings, 'OPENID_PROVIDER_AX_DATA_CALLBACK',
'openid_provider.utils.get_default_ax_data')
AX_EXTENSION = getattr(settings, 'OPENID_PROVIDER_AX_EXTENSION', False)
AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')