From 6c13710c7978bf760cfd612b435c6fb191a6ed15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 9 Apr 2019 11:11:32 -0700 Subject: [PATCH] Fix (again) login from studio when https is activated Login from studio with https was broken by the fix for localhost login. Close #193. --- CHANGELOG.md | 4 ++++ tutor/templates/apps/openedx/config/lms.env.json | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec5ef33..4391b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Latest + +- [Bugfix] Fix (again) login from studio when https is activated (#193) + ## v3.3.3 (2019-03-29) - [Bugfix] Fix `pip install tutor-openedx` diff --git a/tutor/templates/apps/openedx/config/lms.env.json b/tutor/templates/apps/openedx/config/lms.env.json index e4b25a9..0a08fe3 100644 --- a/tutor/templates/apps/openedx/config/lms.env.json +++ b/tutor/templates/apps/openedx/config/lms.env.json @@ -44,6 +44,7 @@ {% endif %} "LANGUAGE_CODE": "{{ LANGUAGE_CODE }}", "LOGIN_REDIRECT_WHITELIST": ["{{ CMS_HOST }}", "studio.localhost"], + {% if ACTIVATE_HTTPS %}"SESSION_COOKIE_DOMAIN": ".{{ lms_cms_common_domain }}",{% endif %} "CACHES": { "default": { "KEY_PREFIX": "default",