Skip to main content

Open edX plugin to handle Open edX signals and events for MIT OL

Project description

A generic Open edX plugin for handling Open edX signals and events for MIT Open Learning.

Purpose

This plugin serves as the centralized handler for all Open edX signals and events that MIT OL systems need to react to. Rather than creating a separate plugin for each event, all signal handlers and filters are collected here.

Currently handled events:

  • org.openedx.learning.user.course_access_role.added.v1 — When a course access role (e.g. instructor, staff) is added, notifies an external system via webhook so the user can be enrolled as an auditor in the corresponding course.

Installation

For detailed installation instructions, please refer to the plugin installation guide.

Installation required in:

  • LMS

  • Studio (CMS)

Configuration

edx-platform configuration

  • Add the following configuration values to the config file in Open edX. For any release after Juniper, that config file is /edx/etc/lms.yml and /edx/etc/cms.yml. If you’re using private.py, add these values to lms/envs/private.py and cms/envs/private.py. These should be added to the top level.

    ENROLLMENT_WEBHOOK_URL: "https://example.com/api/openedx_webhook/enrollment/"
    ENROLLMENT_WEBHOOK_ACCESS_TOKEN: "<your-oauth-access-token>"
  • Optionally, override the roles that trigger the webhook (defaults to ["instructor", "staff"]):

    ENROLLMENT_COURSE_ACCESS_ROLES: ["instructor", "staff"]
  • For Tutor installations, these values can also be managed through a custom Tutor plugin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ol_openedx_events_handler-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ol_openedx_events_handler-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ol_openedx_events_handler-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f800a61235666530bb51f762867c54feea46522fbfc844f1646fda617a83df56
MD5 53ee7c0a627e4cad1147c0976e4fb757
BLAKE2b-256 6b33cf597359aa67421d462be60779bb3ba90cfa5793a2503a2f02ebd3b057d7

See more details on using hashes here.

File details

Details for the file ol_openedx_events_handler-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cee0c2d2ca7f2dda9ec341813d15da1d48bb073f225ff79d27d8553e97c952af
MD5 97b14d6beef7b1fd3ba19bced923e7fe
BLAKE2b-256 10f4df0521861e20e72c0d8fe14b7a7b8b6968e45f5184bf365698bd877ce601

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page