6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 14:43:03 +00:00

Activate SSO studio login in HTTPS only

With the upgrade to Ironwood, studio login redirects to the LMS by
default. This breaks login from studio.localhost. So we activate SSO
login only when HTTPS is activated, which should happen only when the
domains are correctly configured.
This commit is contained in:
Régis Behmo 2019-03-22 00:07:42 +01:00
parent 949761aa29
commit 33239c14fd
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
"PLATFORM_NAME": "{{ PLATFORM_NAME }}", "PLATFORM_NAME": "{{ PLATFORM_NAME }}",
"FEATURES": { "FEATURES": {
"PREVIEW_LMS_BASE": "preview.{{ LMS_HOST }}", "PREVIEW_LMS_BASE": "preview.{{ LMS_HOST }}",
"DISABLE_STUDIO_SSO_OVER_LMS": {{ "false" if ACTIVATE_HTTPS else "true" }},
"ENABLE_COURSEWARE_INDEX": true, "ENABLE_COURSEWARE_INDEX": true,
"ENABLE_LIBRARY_INDEX": true, "ENABLE_LIBRARY_INDEX": true,
"ENABLE_EDXNOTES": {{ "true" if ACTIVATE_NOTES else "false" }} "ENABLE_EDXNOTES": {{ "true" if ACTIVATE_NOTES else "false" }}

View File

@ -43,6 +43,8 @@
"EDXNOTES_INTERNAL_API": "http://notes.openedx:8000/api/v1", "EDXNOTES_INTERNAL_API": "http://notes.openedx:8000/api/v1",
{% endif %} {% endif %}
"LANGUAGE_CODE": "{{ LANGUAGE_CODE }}", "LANGUAGE_CODE": "{{ LANGUAGE_CODE }}",
"LOGIN_REDIRECT_WHITELIST": ["{{ CMS_HOST }}", "studio.localhost"],
"SESSION_COOKIE_DOMAIN": ".{{ LMS_HOST }}",
"CACHES": { "CACHES": {
"default": { "default": {
"KEY_PREFIX": "default", "KEY_PREFIX": "default",