From 18cb734bd2138909329a927c3633f799a30af026 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Mon, 27 Nov 2023 12:59:56 -0500 Subject: [PATCH] fix: compatibility change for edx-drf-extensions 9.0.0 edx-drf-extensions 9.0.0 requires VERIFY_LMS_USER_ID_PROPERTY_NAME to be properly set in LMS to get the appropriate verification when forgiving JWTs is enabled (which will soon be by default). See openedx/edx-drf-extensions#408 for details. This is part of: edx/edx-arch-experiments#429 --- lms/envs/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index 3bc762636b98..820e4ecd9f65 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4411,6 +4411,8 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring # Set this value to an empty dict in order to prevent automatically updating # user data from values in (possibly stale) JWTs. 'JWT_PAYLOAD_USER_ATTRIBUTE_MAPPING': {}, + # Allows JWT authentication to find the LMS user id for verification + 'VERIFY_LMS_USER_ID_PROPERTY_NAME': 'id', } ################################ Settings for rss_proxy ################################