2015-06-08 19:36:49 +00:00
|
|
|
import os
|
2015-06-08 16:01:09 +00:00
|
|
|
from datetime import timedelta
|
|
|
|
|
2015-07-14 16:27:46 +00:00
|
|
|
|
2015-06-08 19:36:49 +00:00
|
|
|
DEBUG = False
|
|
|
|
|
2015-06-08 16:01:09 +00:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': ':memory:',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SITE_ID = 1
|
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
)
|
|
|
|
|
2015-06-08 19:36:49 +00:00
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'handlers': {
|
|
|
|
'console': {
|
|
|
|
'class': 'logging.StreamHandler',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'oidc_provider': {
|
2015-06-15 20:23:47 +00:00
|
|
|
'handlers': ['console'],
|
2015-06-08 19:36:49 +00:00
|
|
|
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-06-08 16:01:09 +00:00
|
|
|
INSTALLED_APPS = (
|
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sites',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.admin',
|
|
|
|
|
|
|
|
'oidc_provider',
|
|
|
|
)
|
|
|
|
|
2015-07-14 16:27:46 +00:00
|
|
|
SECRET_KEY = 'this-is-top-secret'
|
2015-06-08 16:01:09 +00:00
|
|
|
|
2015-07-14 16:27:46 +00:00
|
|
|
ROOT_URLCONF = 'oidc_provider.tests.app.urls'
|
2015-06-08 16:01:09 +00:00
|
|
|
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
"oidc_provider/tests/templates",
|
|
|
|
)
|
|
|
|
|
|
|
|
# OIDC Provider settings.
|
|
|
|
|
2015-07-14 16:27:46 +00:00
|
|
|
SITE_URL = 'http://localhost:8000'
|
|
|
|
OIDC_RSA_KEY_FOLDER = os.path.dirname(__file__)
|