From 5d183d086e3c6c39527be52440cde022b5d3b489 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 | 10 ++++++++++ lms/envs/common.py | 1 + 2 files changed, 11 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index 591247388a9d..d037377b5821 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2530,6 +2530,15 @@ 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, @@ -2956,3 +2965,4 @@ def _should_send_learning_badge_events(settings): # .. for now it wil impact country listing in auth flow and user profile. # .. eg ['US', 'CA'] DISABLED_COUNTRIES = [] + diff --git a/lms/envs/common.py b/lms/envs/common.py index 5ca5bcac9a4a..8c966e67f6d0 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4311,6 +4311,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring # 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',