Event Bus#
The Credentials IDA supports the use of the Open edX Event Bus to consume and publish asynchronous Open edX Events.
For more information on how to start using the Event Bus in your environment, see the How to start using the Event Bus doc in the Open edX Confluence and the Event Bus how-to docs in GitHub.
Events Consumed#
Before Credentials can consume these events, you must:
Have the appropriate configuration enabled for the LMS to publish course certificate events to the Event Bus:
for
CERTIFICATE_CREATEDevents, you must have theSEND_CERTIFICATE_CREATED_SIGNALsetting enabled in your LMS configurationfor
CERTIFICATE_REVOKEDevents, you must have theSEND_CERTIFICATE_REVOKED_SIGNALsetting enabled in your LMS configuration
Have the
EVENT_BUS_REDIS_CONSUMERS_ENABLEDor theEVENT_BUS_KAFKA_CONSUMERS_ENABLEDsetting enabled in your Credentials configuration, depending on the underlying Event Bus implementation used in your Open edX environment.
There is additional configuration required to run the Event Bus in an Open edX environment, this configuration is beyond the scope of this document. Please see How to start using the Event Bus for more information.
CERTIFICATE_CREATED#
The Credentials IDA supports consuming CERTIFICATE_CREATED events published by the LMS of edx-platform. If configured, this event is fired by the LMS when a (course) certificate is awarded to a learner. Upon successful processing of this event, a (course) credential is created for the learner in Credentials.
CERTIFICATE_REVOKED#
The Credentials IDA supports consuming CERTIFICATE_REVOKED events published by the LMS of edx-platform. If configured, this event is fired by the LMS when a (course) certificate is revoked from a learner. Upon successful processing of this event, a (course) credential will be revoked from the learner in Credentials.
Events Published#
The Credentials IDA supports publishing events to the Event Bus when a (program) credential is awarded or revoked from a learner.
PROGRAM_CERTIFICATE_AWARDED#
To publish an event to the Event Bus when a program credential is awarded to a learner, you must enable the SEND_PROGRAM_CERTIFICATE_AWARDED_SIGNAL in the Credentials IDA’s configuration.
PROGRAM_CERTIFICATE_REVOKED#
To publish an event to the Event Bus when a program credential is revoked from a learner, you must enable the SEND_PROGRAM_CERTIFICATE_REVOKED_SIGNAL in the Credentials IDA’s configuration.