From eb910304036e81d2ca37b75b83be7f246fb2390f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sun, 7 Jul 2019 13:49:58 +0800 Subject: [PATCH] Add JWT credentials JWT (JSON Web Tokens) is used to authenticate with the discovery service, among other things. --- tutor/templates/apps/openedx/settings/lms/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutor/templates/apps/openedx/settings/lms/common.py b/tutor/templates/apps/openedx/settings/lms/common.py index 37b320d..cb0ba24 100644 --- a/tutor/templates/apps/openedx/settings/lms/common.py +++ b/tutor/templates/apps/openedx/settings/lms/common.py @@ -45,6 +45,11 @@ GRADES_DOWNLOAD = { LOCALE_PATHS.append("/openedx/locale") +# JWT is authentication for other openedx services +JWT_AUTH["ISSUER"] = "{% if ACTIVATE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/oauth2" +JWT_AUTH["JWT_AUDIENCE"] = "openedx" +JWT_AUTH["SECRET_KEY"] = "{{ OPENEDX_SECRET_KEY }}" + # Create folders if necessary for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]: if not os.path.exists(folder):