From b5e989d96bf31f1ae5c9ed954cc00e5d97824ba7 Mon Sep 17 00:00:00 2001 From: John Tordoff <> Date: Mon, 19 Sep 2022 10:29:48 -0400 Subject: [PATCH] more dependabot updates --- osf/utils/tokens/__init__.py | 2 +- requirements.txt | 4 ++-- tests/test_tokens.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osf/utils/tokens/__init__.py b/osf/utils/tokens/__init__.py index 3554b4a1b4df..14876b05fd9d 100644 --- a/osf/utils/tokens/__init__.py +++ b/osf/utils/tokens/__init__.py @@ -90,7 +90,7 @@ def encode(payload): payload, settings.JWT_SECRET, algorithm=settings.JWT_ALGORITHM - ).decode() + ) def decode(encoded_token): diff --git a/requirements.txt b/requirements.txt index ce9468c2a904..6ee85d19507c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -58,8 +58,8 @@ django-cors-headers==3.10.1 djangorestframework-bulk==0.2.1 hashids==1.2.0 pyjwt==2.4.0 -django-celery-beat==4.2.3 # BSD 3 Clause -django-celery-results==2.4.0 +django-celery-beat==1.1.1 # BSD 3 Clause +django-celery-results==1.0.1 pyjwe==1.0.0 # Required by pyjwe and ndg-httpsclient # Building wheel for cryptography >= 3.4.0 requires a Rust version incompatible with Docker base image. diff --git a/tests/test_tokens.py b/tests/test_tokens.py index dcbfdcb09397..fe42432938a8 100644 --- a/tests/test_tokens.py +++ b/tests/test_tokens.py @@ -33,7 +33,7 @@ def setUp(self, *args, **kwargs): self.encoded_token = jwt.encode( self.payload, self.secret, - algorithm=settings.JWT_ALGORITHM).decode() + algorithm=settings.JWT_ALGORITHM) def test_encode(self): assert_equal(encode(self.payload), self.encoded_token)