Skip to content

Commit 5d183d0

Browse files
committed
chore: Updated defaults for token handling on CMS
1 parent 4c63afe commit 5d183d0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cms/envs/common.py

+10
Original file line numberDiff line numberDiff line change
@@ -2530,6 +2530,15 @@
25302530
EXAMS_SERVICE_URL = 'http://localhost:18740/api/v1'
25312531
EXAMS_SERVICE_USERNAME = 'edx_exams_worker'
25322532

2533+
############## Settings for JWT token handling ##############
2534+
TOKEN_SIGNING = {
2535+
'JWT_ISSUER': 'http://127.0.0.1:8740',
2536+
'JWT_SIGNING_ALGORITHM': 'RS512',
2537+
'JWT_SUPPORTED_VERSION': '1.2.0',
2538+
'JWT_PRIVATE_SIGNING_JWK': None,
2539+
'JWT_PUBLIC_SIGNING_JWK_SET': None,
2540+
}
2541+
25332542
FINANCIAL_REPORTS = {
25342543
'STORAGE_TYPE': 'localfs',
25352544
'BUCKET': None,
@@ -2956,3 +2965,4 @@ def _should_send_learning_badge_events(settings):
29562965
# .. for now it wil impact country listing in auth flow and user profile.
29572966
# .. eg ['US', 'CA']
29582967
DISABLED_COUNTRIES = []
2968+

lms/envs/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -4311,6 +4311,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
43114311
# Exam Service
43124312
EXAMS_SERVICE_URL = 'http://localhost:18740/api/v1'
43134313

4314+
############## Settings for JWT token handling ##############
43144315
TOKEN_SIGNING = {
43154316
'JWT_ISSUER': 'http://127.0.0.1:8740',
43164317
'JWT_SIGNING_ALGORITHM': 'RS512',

0 commit comments

Comments
 (0)