Skip to main content

An Open edX plugin implementing MIT social auth backend

Project description

An Open edX plugin implementing MIT social auth backend

Version Compatibility

Compatible with all edx releases

Installing The Plugin

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

Installation required in:

  • LMS

Configurations

This section outlines the steps for integrating your application with ol-social-auth for various deployment scenarios. Please refer to the corresponding documentation for detailed instructions.

  • Devstack: To configure ol-social-auth with an edx-platform instance provisioned using devstack, follow the instructions here

  • Tutor: To configure ol-social-auth with an edx-platform instance provisioned using tutor, follow the instructions here also

How to use

Make sure to properly configure the plugin following the links in the above “Configurations” section before use.

  • Install the plugin in the lms following the installation steps above.

  • Verify that you are not logged in on edx-platform.

  • Create a new user in your MIT application and verify that a corresponding user is successfully created on the edX platform.

Expired Token Cleanup

This plugin includes a scheduled Celery task (ol_clear_expired_tokens) that automatically removes expired OAuth2 access tokens, refresh tokens, and grant tokens from the database.

Behavior:

  • Runs every Monday at 9:00 AM (server time) via Celery Beat by default. The schedule can be customized by overriding the ol_clear_expired_tokens entry in CELERYBEAT_SCHEDULE.

  • Uses django-oauth-toolkit’s clear_expired() to delete tokens that have exceeded the configured expiration threshold.

  • Sets REFRESH_TOKEN_EXPIRE_SECONDS to 30 days (overriding the edx-platform default of 90 days). Tokens revoked or expired longer than 30 days ago will be cleaned up.

Note: If running this plugin for the first time on a database with a large backlog of expired tokens (millions of rows), consider running the edx_clear_expired_tokens management command manually first to reduce the initial volume before relying on the scheduled task.

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_social_auth-0.2.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

ol_social_auth-0.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ol_social_auth-0.2.1.tar.gz.

File metadata

  • Download URL: ol_social_auth-0.2.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ol_social_auth-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ad6eea4d4861e52c09e8370044c39e1186f82178df7c24c924b20927c57424bf
MD5 e8ef6bf9ccb2f135f2f188dbe3b2dad3
BLAKE2b-256 bb8a7b7d3d6a170174a41f6e13064dc65e2718a47ffbb2f859c50b9dff01c18e

See more details on using hashes here.

File details

Details for the file ol_social_auth-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ol_social_auth-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ol_social_auth-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3591ddd5e70dc8a5b3c9ca16e5f76406bbc758fa407006bddf48d6be1715f032
MD5 d9f47e59be5290cf1f971a4577e963d7
BLAKE2b-256 fa8965339ace67057ad62a5cee7d031601d0174a4a45a1d51694fa0cd7b685ce

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