authentic/src/authentic2_idp_openid/conf.py

12 lines
358 B
Python

import os
import tempfile
from django.conf import settings
tempdir = tempfile.gettempdir()
STORE = getattr(settings, 'OPENID_PROVIDER_STORE',
'authentic2.idp.idp_openid.openid_store.DjangoOpenIDStore')
FILESTORE_PATH = getattr(settings, 'OPENID_PROVIDER_FILESTORE_PATH',
os.path.join(tempdir, 'openid-filestore'))