diff --git a/lms/djangoapps/courseware/views/views.py b/lms/djangoapps/courseware/views/views.py index 65c417279875..19eabe692997 100644 --- a/lms/djangoapps/courseware/views/views.py +++ b/lms/djangoapps/courseware/views/views.py @@ -91,7 +91,6 @@ ) from lms.djangoapps.courseware.date_summary import verified_upgrade_deadline_link from lms.djangoapps.courseware.exceptions import CourseAccessRedirect, Redirect -from lms.djangoapps.courseware.jwt import unpack_jwt from lms.djangoapps.courseware.masquerade import is_masquerading_as_specific_student, setup_masquerade from lms.djangoapps.courseware.model_data import FieldDataCache from lms.djangoapps.courseware.models import BaseStudentModuleHistory, StudentModule @@ -138,6 +137,7 @@ from openedx.core.djangoapps.zendesk_proxy.utils import create_zendesk_ticket from openedx.core.djangolib.markup import HTML, Text from openedx.core.lib.courses import get_course_by_id +from openedx.core.lib.jwt import unpack_jwt from openedx.core.lib.mobile_utils import is_request_from_mobile_app from openedx.features.course_duration_limits.access import generate_course_expired_fragment from openedx.features.course_experience import course_home_url diff --git a/lms/djangoapps/courseware/jwt.py b/openedx/core/lib/jwt.py similarity index 100% rename from lms/djangoapps/courseware/jwt.py rename to openedx/core/lib/jwt.py diff --git a/lms/djangoapps/courseware/tests/test_jwt.py b/openedx/core/lib/tests/test_jwt.py similarity index 97% rename from lms/djangoapps/courseware/tests/test_jwt.py rename to openedx/core/lib/tests/test_jwt.py index a513b1fec634..79caf0207fa1 100644 --- a/lms/djangoapps/courseware/tests/test_jwt.py +++ b/openedx/core/lib/tests/test_jwt.py @@ -7,7 +7,7 @@ from jwkest import BadSignature, Expired, Invalid, MissingKey, jwk from jwkest.jws import JWS -from lms.djangoapps.courseware.jwt import _encode_and_sign, create_jwt, unpack_jwt +from openedx.core.lib.jwt import _encode_and_sign, create_jwt, unpack_jwt test_user_id = 121