-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: inherit from social auth exception (#192)
* refactor: inherit from social auth exception This change the heritance of the eox-tenant-auth-exception. This with the purpose of the exception to be handled by the social tpa middleware exception process. You can see here that the new class is also based in value error exception. https://github.com/python-social-auth/social-core/blob/29cbbd22b98d81d569a886b1cc0bd9a316cd124f/social_core/exceptions.py#L1 But the change is related with this PR: eduNEXT/eox-core#171 So now as the exception is family of the SocialAuthBaseException. The the tpa middleware could managed it. https://github.com/python-social-auth/social-app-django/blob/5.4.0/social_django/middleware.py#L35 Keep in mind that this middleware is parent of edx-platform middleware. https://github.com/openedx/edx-platform/blob/ebcbe1cd9208191c0589d7fe538c6ac13470abe6/common/djangoapps/third_party_auth/middleware.py#L18 * refactor: social-auth-core pkg inclusion
- Loading branch information
Showing
6 changed files
with
150 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ django-crum | |
django-mysql | ||
jsonfield | ||
edx-opaque-keys[django] | ||
social-auth-core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# This file is autogenerated by pip-compile with python 3.10 | ||
# To update, run: | ||
# | ||
# make upgrade | ||
# | ||
distlib==0.3.4 | ||
cachetools==5.3.2 | ||
# via tox | ||
chardet==5.2.0 | ||
# via tox | ||
colorama==0.4.6 | ||
# via tox | ||
distlib==0.3.8 | ||
# via virtualenv | ||
filelock==3.6.0 | ||
filelock==3.13.1 | ||
# via | ||
# tox | ||
# virtualenv | ||
packaging==21.3 | ||
# via tox | ||
platformdirs==2.5.1 | ||
# via virtualenv | ||
pluggy==1.0.0 | ||
# via tox | ||
py==1.11.0 | ||
# via tox | ||
pyparsing==3.0.7 | ||
# via packaging | ||
six==1.16.0 | ||
packaging==23.2 | ||
# via | ||
# pyproject-api | ||
# tox | ||
platformdirs==4.1.0 | ||
# via | ||
# -c requirements/constraints.txt | ||
# tox | ||
# virtualenv | ||
toml==0.10.2 | ||
pluggy==1.3.0 | ||
# via tox | ||
tox==3.24.5 | ||
pyproject-api==1.6.1 | ||
# via tox | ||
tomli==2.0.1 | ||
# via | ||
# pyproject-api | ||
# tox | ||
tox==4.11.4 | ||
# via -r requirements/tox.in | ||
virtualenv==20.13.2 | ||
virtualenv==20.25.0 | ||
# via tox |