From 5d494feb0197f08827b13ca49e272e7c6b4eab82 Mon Sep 17 00:00:00 2001 From: Marcos Date: Wed, 15 Jan 2025 16:10:04 -0300 Subject: [PATCH] chore: Updated defaults for token handling on CMS --- cms/envs/common.py | 9 +++++++++ lms/envs/common.py | 1 + 2 files changed, 10 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index 591247388a..8f068a5c00 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2530,6 +2530,15 @@ COMMENTS_SERVICE_KEY = 'password' EXAMS_SERVICE_URL = 'http://localhost:18740/api/v1' EXAMS_SERVICE_USERNAME = 'edx_exams_worker' +############## Settings for JWT token handling ############## +TOKEN_SIGNING = { + 'JWT_ISSUER': 'http://127.0.0.1:8740', + 'JWT_SIGNING_ALGORITHM': 'RS512', + 'JWT_SUPPORTED_VERSION': '1.2.0', + 'JWT_PRIVATE_SIGNING_JWK': None, + 'JWT_PUBLIC_SIGNING_JWK_SET': None, +} + FINANCIAL_REPORTS = { 'STORAGE_TYPE': 'localfs', 'BUCKET': None, diff --git a/lms/envs/common.py b/lms/envs/common.py index 5ca5bcac9a..8c966e67f6 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4311,6 +4311,7 @@ ECOMMERCE_API_SIGNING_KEY = 'SET-ME-PLEASE' # Exam Service EXAMS_SERVICE_URL = 'http://localhost:18740/api/v1' +############## Settings for JWT token handling ############## TOKEN_SIGNING = { 'JWT_ISSUER': 'http://127.0.0.1:8740', 'JWT_SIGNING_ALGORITHM': 'RS512',