Xblock restricting access to course test to Proctor Exam monitoring process.
Project description
Proctor Exam Xblock
Xblock restricting access to course test to Proctor Exam monitoring process.
Installation
Install this package with pip
using FUN package index via:
$ pip install --extra-index-url https://pypi.fury.io/openfun xblock-proctor-exam
Alternatively, if you intend to work on this project, clone this repository first, and then make an editable installation via:
$ pip install -e ".[dev]"
Configuration
Proctor Exam xblock relies on Configurable LTI Consumer which should also be installed in Python environment, therefore it also use its Django settings for configuration, see Configurable LTI Consumer documentation.
A typical Proctor Exam LTI configuration should look like this:
LTI_XBLOCK_CONFIGURATIONS = [
{
"shared_secret": "TestSharedSecret",
"oauth_consumer_key": "TestOauthConsumerKey",
"display_name": "", # this is required to let xblock register itself in studio
"is_launch_url_regex": False,
"automatic_resizing": None,
"inline_ratio": None,
"ignore_configuration": True,
"show_button": False,
"pattern": ".*fun\.proctorexam\.com/lti\?id=(?P<exam_id>[0-9]+)",
"hidden_fields": [
"display_name",
"description",
"lti_id",
"launch_target",
"inline_height",
"accept_grades_past_due",
"ask_to_send_username",
"ask_to_send_email",
"custom_parameters",
"has_score",
"hide_launch",
"modal_height",
"modal_width",
"weight",
"button_text"
],
"defaults": {
"launch_target": "new_window",
"lti_id": "proctor_exam",
},
}]
configurable-lti-provide
also allows to set LTI OAuth credentials in LTI_XBLOCK_CONFIGURATION,
or in an other constant LTI_XBLOCK_SECRETS which then can be stored in encrypted vault.
LTI_XBLOCK_SECRETS = {
"proctor_exam": {
"shared_secret": "TestSharedSecret",
"oauth_consumer_key": "TestOauthConsumerKey",
}
}
Or they can be set at course level in advanced settings
Add finally, proctor_exam
to the list of advanced modules in the
"advanced settings" of a course.
Please note that the workbench included in the present repository is running a standard configuration with fake credentials. (see config/settings.yml.dist)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xblock-proctor-exam-1.0.0.tar.gz
.
File metadata
- Download URL: xblock-proctor-exam-1.0.0.tar.gz
- Upload date:
- Size: 210.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404288da9a825ee907d6b77d149d16c9c677dbf9c09881133925bccdeb2ca322 |
|
MD5 | 66b3c4df018235a0e282e3d62c32ebd6 |
|
BLAKE2b-256 | c27c1447f6fd857ec36b8d0be91c8767adc2716a0ea904e7f4fd7fd23525ece1 |
File details
Details for the file xblock_proctor_exam-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: xblock_proctor_exam-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 222.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc000c388bc83c8bf7e43c72db75b8d2f5bf5c7603a306a8cb2e3b1132666f9 |
|
MD5 | 0ae4738fdb43cde96c8102feb61f21f0 |
|
BLAKE2b-256 | fae9c3293e73421bdbd18f58c6277af523e16bc18233f5f38de8d72ffbcef9eb |