diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd5f66..95e033a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ Every user-facing change should have an entry in this changelog. Please respect ## Unreleased +- [Fix] Fix studio logout issue. (by @Alec4r) [PR #680](https://github.com/overhangio/tutor/pull/680) + ## v13.3.0 (2022-06-03) - [Security] Apply logout redirect url security fix. (by @regisb) diff --git a/tutor/templates/apps/openedx/settings/lms/development.py b/tutor/templates/apps/openedx/settings/lms/development.py index 4e0cb92..e30aabb 100644 --- a/tutor/templates/apps/openedx/settings/lms/development.py +++ b/tutor/templates/apps/openedx/settings/lms/development.py @@ -22,7 +22,7 @@ CSRF_COOKIE_SECURE = False SESSION_COOKIE_SAMESITE = "Lax" # CMS authentication -IDA_LOGOUT_URI_LIST.append("http://{{ CMS_HOST }}:8001/complete/logout") +IDA_LOGOUT_URI_LIST.append("http://{{ CMS_HOST }}:8001/logout/") FEATURES['ENABLE_COURSEWARE_MICROFRONTEND'] = False diff --git a/tutor/templates/apps/openedx/settings/lms/production.py b/tutor/templates/apps/openedx/settings/lms/production.py index 6ec8c3c..b859b5f 100644 --- a/tutor/templates/apps/openedx/settings/lms/production.py +++ b/tutor/templates/apps/openedx/settings/lms/production.py @@ -24,7 +24,7 @@ SESSION_COOKIE_SAMESITE = "Lax" {% endif %} # CMS authentication -IDA_LOGOUT_URI_LIST.append("{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ CMS_HOST }}/complete/logout") +IDA_LOGOUT_URI_LIST.append("{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ CMS_HOST }}/logout/") # Required to display all courses on start page SEARCH_SKIP_ENROLLMENT_START_DATE_FILTERING = True diff --git a/tutor/templates/apps/openedx/settings/partials/common_cms.py b/tutor/templates/apps/openedx/settings/partials/common_cms.py index 945052f..d609345 100644 --- a/tutor/templates/apps/openedx/settings/partials/common_cms.py +++ b/tutor/templates/apps/openedx/settings/partials/common_cms.py @@ -13,7 +13,6 @@ SESSION_COOKIE_NAME = "studio_session_id" MAX_ASSET_UPLOAD_FILE_SIZE_IN_MB = 100 FRONTEND_LOGIN_URL = LMS_ROOT_URL + '/login' -FRONTEND_LOGOUT_URL = LMS_ROOT_URL + '/logout' FRONTEND_REGISTER_URL = LMS_ROOT_URL + '/register' # Create folders if necessary