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.2.tar.gz (4.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_social_auth-0.2.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ol_social_auth-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d9a1f8d58183df2014db2ed47e37bc87c4375891a96da7bf02b7f548de2a51fd
MD5 8679cfa097e61e253ab6f8d90cb2b355
BLAKE2b-256 30e05e2ec352b3152595df2a82eb00a6567bdd27ee472326eca3d4eab9a6df16

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ol_social_auth-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71f2167fbcd3e42ef5702c30f861f4ceb9b89a79777ccb7aba1c890173dd7536
MD5 fca79721d129f7cd9dab93d213f6eaab
BLAKE2b-256 8e118359cb3f9119d8280189db0dfc2a5e5b544442dfe8d13fdeedfaa694f079

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