Skip to content

Commit 9a128d5

Browse files
revert: remove spurious main commits from branch history
Reverts the changes introduced by two commits that were accidentally included in this branch during an earlier rebase on a shallow clone: - f71e486 (feat: add clear expired tokens task in ol-social-auth #778) - 7226134 ([pre-commit.ci] pre-commit autoupdate #783) These commits are already in main; including them here caused the PR to show unrelated ol_social_auth and pre-commit changes. Co-authored-by: arslanashraf7 <34372316+arslanashraf7@users.noreply.github.com>
1 parent b05ac9d commit 9a128d5

File tree

10 files changed

+3
-139
lines changed

10 files changed

+3
-139
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ repos:
3939
- --exclude-files '(uv.lock)'
4040
- repo: https://github.com/astral-sh/ruff-pre-commit
4141
# Ruff version.
42-
rev: 'v0.15.10'
42+
rev: 'v0.15.8'
4343
hooks:
4444
- id: ruff-format
4545
- id: ruff
4646
args: [--extend-ignore=D1, --fix]
4747
- repo: https://github.com/pre-commit/mirrors-mypy
48-
rev: v1.20.1
48+
rev: v1.19.1
4949
hooks:
5050
- id: mypy
5151
additional_dependencies:

src/ol_social_auth/README.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,3 @@ Make sure to properly configure the plugin following the links in the above "Con
3232
* Install the plugin in the lms following the installation steps above.
3333
* Verify that you are not logged in on edx-platform.
3434
* Create a new user in your MIT application and verify that a corresponding user is successfully created on the edX platform.
35-
36-
Expired Token Cleanup
37-
---------------------
38-
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.
39-
40-
**Behavior:**
41-
42-
* 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``.
43-
* Uses django-oauth-toolkit's ``clear_expired()`` to delete tokens that have exceeded the configured expiration threshold.
44-
* 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.
45-
46-
**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.

src/ol_social_auth/ol_social_auth/apps.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/ol_social_auth/ol_social_auth/settings/__init__.py

Whitespace-only changes.

src/ol_social_auth/ol_social_auth/settings/common.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/ol_social_auth/ol_social_auth/settings/production.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/ol_social_auth/ol_social_auth/tasks.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/ol_social_auth/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ol-social-auth"
3-
version = "0.2.1"
3+
version = "0.2.0"
44
description = "An Open edX plugin implementing MIT social auth backend"
55
authors = [
66
{name = "MIT Office of Digital Learning"}
@@ -11,13 +11,9 @@ requires-python = ">=3.11"
1111
keywords = ["Python", "edx"]
1212
dependencies = [
1313
"Django>=4.0",
14-
"django-oauth-toolkit",
1514
"social-auth-core>=4.5.4",
1615
]
1716

18-
[project.entry-points."lms.djangoapp"]
19-
ol_social_auth = "ol_social_auth.apps:OLSocialAuthConfig"
20-
2117
[build-system]
2218
requires = ["hatchling"]
2319
build-backend = "hatchling.build"

src/ol_social_auth/setup.cfg

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/ol_social_auth/tests/tasks_test.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)