-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for LTI launch refactor in xblock-lti-consumer
This commit updates the sample LTI proctoring integration to use the new LTI launch refactor in xblock-lti-consumer (openedx/xblock-lti-consumer#288) and the Proctoring Services implementation (openedx/xblock-lti-consumer#297). As a reminder, this application currently serves as a mock implementation of the proctoring flow to demonstrate how we might use the xblock-lti-consumer library for proctoring. It is not intended to be deployed as-is or to serve as an actual proctoring flow implementation. Here is a digest of important changes. * The launch_proctoring, start_assessment, public_keyset, and access_token views are removed. * The start_proctoring and end_assessment views are added. * A signal handler for the LTI_1P3_PROCTORING_ASSESSMENT_STARTED is added. * The lti AppConfig is modified to support the above signal.
- Loading branch information
1 parent
0ce8e54
commit 12a227a
Showing
19 changed files
with
120 additions
and
440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
edX Exams Signal Handlers | ||
""" | ||
from django.dispatch import receiver | ||
from lti_consumer.signals.signals import LTI_1P3_PROCTORING_ASSESSMENT_STARTED | ||
|
||
|
||
@receiver(LTI_1P3_PROCTORING_ASSESSMENT_STARTED) | ||
def assessment_started(sender, **kwargs): # pylint: disable=unused-argument | ||
""" | ||
Signal handler for the lti_consumer LTI_1P3_PROCTORING_ASSESSMENT_STARTED signal. | ||
""" | ||
print(f"LTI_1P3_PROCTORING_ASSESSMENT_STARTED signal received with kwargs: {kwargs}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
LTI Utility Functions | ||
""" | ||
from django.conf import settings | ||
|
||
|
||
def get_lti_root(): | ||
if hasattr(settings, 'LTI_ROOT_URL_OVERRIDE'): | ||
return settings.LTI_ROOT_URL_OVERRIDE | ||
else: | ||
return settings.ROOT_URL |
Oops, something went wrong.