feat: add full name as a LTI PII field
This commits adds the ability to share a learner's full name in both LTI 1.1 and LTI 1.3 launches. In LTI 1.1, the full name is sent as the "lis_person_name_full" LTI parameter. In LTI 1.3, the full name is sent as the "name" ID token claim. The full name corresponds to the learner's name as recorded by the UserProfile model in the LMS. Enabling the transmission of full name in either version of LTI follows the existing pattern for PII sharing. In order for full name to be shared via an LTI launch, the CourseAllowPIISharingInLTIFlag configuration model must be enabled for the course, and the "Request user's full name" XBlock field must be enabled in the XBlock describing the particular LTI integration. Please note that this commit does not add the ability to share a learner's full name via the LTI 1.3 Names and Role Provisioning Services context membership endpoint because that behavior already exists.
Showing
- lti_consumer/data.py 2 additions, 0 deletionslti_consumer/data.py
- lti_consumer/lti_1p1/consumer.py 9 additions, 2 deletionslti_consumer/lti_1p1/consumer.py
- lti_consumer/lti_1p1/tests/test_consumer.py 4 additions, 1 deletionlti_consumer/lti_1p1/tests/test_consumer.py
- lti_consumer/lti_1p3/consumer.py 1 addition, 1 deletionlti_consumer/lti_1p3/consumer.py
- lti_consumer/lti_xblock.py 34 additions, 11 deletionslti_consumer/lti_xblock.py
- lti_consumer/plugin/views.py 1 addition, 0 deletionslti_consumer/plugin/views.py
- lti_consumer/static/js/xblock_lti_consumer.js 17 additions, 2 deletionslti_consumer/static/js/xblock_lti_consumer.js
- lti_consumer/templates/html/student.html 1 addition, 0 deletionslti_consumer/templates/html/student.html
- lti_consumer/tests/test_utils.py 2 additions, 2 deletionslti_consumer/tests/test_utils.py
- lti_consumer/tests/unit/test_lti_xblock.py 74 additions, 23 deletionslti_consumer/tests/unit/test_lti_xblock.py
Loading
Please register or sign in to comment