Skip to content

Commit

Permalink
Reverting pyjwt latest version. Causing issues in IDAs. (#97)
Browse files Browse the repository at this point in the history
* Reverting pyjwt latest version. Causing issues in IDAs.

* Reverting pyjwt latest version. Causing issues in IDAs.
  • Loading branch information
awais786 authored Feb 1, 2021
1 parent 8eb89a4 commit ad06b03
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Unreleased

*

[3.1.2] - 2021-01-25
--------------------

Changed
~~~~~

* Reverting pyjwt latest version. It was causing issues in IDAs.

[3.1.1] - 2021-01-25
--------------------

Expand Down
2 changes: 1 addition & 1 deletion auth_backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
projects as well.
"""
__version__ = '3.3.1' # pragma: no cover
__version__ = '3.3.2' # pragma: no cover
2 changes: 1 addition & 1 deletion auth_backends/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def auth_complete(self, *args, **kwargs):
return user

def user_data(self, access_token, *args, **kwargs):
decoded_access_token = jwt.decode(access_token, options={"verify_signature": False})
decoded_access_token = jwt.decode(access_token, verify=False)

keys = list(self.CLAIMS_TO_DETAILS_KEY_MAP.keys()) + ['administrator', 'superuser']
user_data = {key: decoded_access_token[key] for key in keys if key in decoded_access_token}
Expand Down
7 changes: 5 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ oauthlib==3.1.0
# social-auth-core
pycparser==2.20
# via cffi
pyjwt==2.0.1
pyjwt==1.7.1
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# social-auth-core
python3-openid==3.2.0
Expand All @@ -47,10 +48,12 @@ six==1.15.0
# -r requirements/base.in
# cryptography
# social-auth-app-django
# social-auth-core
social-auth-app-django==4.0.0
# via -r requirements/base.in
social-auth-core==4.0.3
social-auth-core==4.0.2
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
# social-auth-app-django
sqlparse==0.4.1
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ filelock==3.0.12
# virtualenv
idna==2.10
# via requests
packaging==20.8
packaging==20.9
# via tox
pluggy==0.13.1
# via tox
Expand All @@ -46,5 +46,5 @@ tox==3.21.3
# tox-battery
urllib3==1.26.3
# via requests
virtualenv==20.4.0
virtualenv==20.4.1
# via tox
5 changes: 5 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@

# This file contains all common constraints for edx-repos
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt



# greater versions causing failures in IDAs.
pyjwt==1.7.1
13 changes: 8 additions & 5 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ isort==5.7.0
# via
# -r requirements/test.txt
# pylint
jinja2==2.11.2
jinja2==2.11.3
# via
# -r requirements/test.txt
# code-annotations
Expand All @@ -132,7 +132,7 @@ oauthlib==3.1.0
# -r requirements/test.txt
# requests-oauthlib
# social-auth-core
packaging==20.8
packaging==20.9
# via
# -r requirements/ci.txt
# -r requirements/test.txt
Expand Down Expand Up @@ -168,8 +168,9 @@ pycryptodomex==3.9.9
# pyjwkest
pyjwkest==1.4.2
# via -r requirements/test.txt
pyjwt==2.0.1
pyjwt==1.7.1
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
# social-auth-core
pylint-celery==0.3
Expand Down Expand Up @@ -243,13 +244,15 @@ six==1.15.0
# edx-lint
# pyjwkest
# social-auth-app-django
# social-auth-core
# tox
# unittest2
# virtualenv
social-auth-app-django==4.0.0
# via -r requirements/test.txt
social-auth-core==4.0.3
social-auth-core==4.0.2
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/test.txt
# social-auth-app-django
sqlparse==0.4.1
Expand Down Expand Up @@ -289,7 +292,7 @@ urllib3==1.26.3
# -r requirements/ci.txt
# -r requirements/test.txt
# requests
virtualenv==20.4.0
virtualenv==20.4.1
# via
# -r requirements/ci.txt
# -r requirements/test.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ wheel==0.36.2
# via -r requirements/pip.in

# The following packages are considered to be unsafe in a requirements file:
pip==21.0
pip==21.0.1
# via -r requirements/pip.in
setuptools==52.0.0
# via -r requirements/pip.in
13 changes: 8 additions & 5 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ iniconfig==1.1.1
# via pytest
isort==5.7.0
# via pylint
jinja2==2.11.2
jinja2==2.11.3
# via code-annotations
lazy-object-proxy==1.4.3
# via astroid
Expand All @@ -88,7 +88,7 @@ oauthlib==3.1.0
# -r requirements/base.txt
# requests-oauthlib
# social-auth-core
packaging==20.8
packaging==20.9
# via
# pytest
# tox
Expand All @@ -112,8 +112,9 @@ pycryptodomex==3.9.9
# via pyjwkest
pyjwkest==1.4.2
# via -r requirements/test.in
pyjwt==2.0.1
pyjwt==1.7.1
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# social-auth-core
pylint-celery==0.3
Expand Down Expand Up @@ -170,13 +171,15 @@ six==1.15.0
# edx-lint
# pyjwkest
# social-auth-app-django
# social-auth-core
# tox
# unittest2
# virtualenv
social-auth-app-django==4.0.0
# via -r requirements/base.txt
social-auth-core==4.0.3
social-auth-core==4.0.2
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.txt
# social-auth-app-django
sqlparse==0.4.1
Expand All @@ -202,7 +205,7 @@ urllib3==1.26.3
# via
# -r requirements/base.txt
# requests
virtualenv==20.4.0
virtualenv==20.4.1
# via tox
wrapt==1.12.1
# via astroid

0 comments on commit ad06b03

Please sign in to comment.