'social.pipeline.social_auth.social_user', 'social.pipeline.user.get_username', 'social.pipeline.social_auth.associate_by_email', 'social.pipeline.user.create_user', 'social.pipeline.social_auth.associate_user', 'social.pipeline.social_auth.load_extra_data', 'social.pipeline.user.user_details', ) SESSION_COOKIE_DOMAIN = env('SESSION_COOKIE_DOMAIN', 'sessionid') SESSION_COOKIE_NAME = (SESSION_COOKIE_DOMAIN + ".sessionid").replace(".", "_") SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') SESSION_COOKIE_HTTPONLY = False SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True CACHES = {'default': cache.config()} MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'wagtail.wagtailcore.middleware.SiteMiddleware', 'wagtail.wagtailredirects.middleware.RedirectMiddleware', 'dpaw_utils.middleware.SSOLoginMiddleware', )
"social.pipeline.user.create_user", "social.pipeline.social_auth.associate_user", "social.pipeline.social_auth.load_extra_data", "social.pipeline.user.user_details", ) SESSION_COOKIE_DOMAIN = env("SESSION_COOKIE_DOMAIN", None) if env("SESSION_COOKIE_NAME", None): SESSION_COOKIE_NAME = env("SESSION_COOKIE_NAME", None) else: if SESSION_COOKIE_DOMAIN: SESSION_COOKIE_NAME = (SESSION_COOKIE_DOMAIN + ".sessionid").replace(".", "_") SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") SESSION_COOKIE_HTTPONLY = env("SESSION_COOKIE_HTTPONLY", False) SESSION_COOKIE_SECURE = env("SESSION_COOKIE_SECURE", False) CSRF_COOKIE_SECURE = env("CSRF_COOKIE_SECURE", False) CACHES = {"default": cache.config()} MIDDLEWARE_CLASSES = ( "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "wagtail.wagtailcore.middleware.SiteMiddleware", "wagtail.wagtailredirects.middleware.RedirectMiddleware", "dpaw_utils.middleware.SSOLoginMiddleware", ) CRON_CLASSES = ("organisation.cron.PasswordReminderCronJob",) ROOT_URLCONF = "oim_cms.urls" WSGI_APPLICATION = "oim_cms.wsgi.application" DATABASES = {"default": database.config()}