mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-09 14:50:59 +00:00
Add JWT credentials
JWT (JSON Web Tokens) is used to authenticate with the discovery service, among other things.
This commit is contained in:
parent
45a573d8e5
commit
eb91030403
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user