From 17bf93e28aa99dc6c27528a509890e932bcc5c99 Mon Sep 17 00:00:00 2001 From: Christian Tavares Date: Tue, 25 Sep 2018 13:52:22 -0300 Subject: [PATCH] [Security] Bump python-jose from 1.3.2 to 3.0.1 Bumps [python-jose](https://github.com/mpdavis/python-jose) from 1.3.2 to 3.0.1. **This update includes security fixes.** - [Release notes](https://github.com/mpdavis/python-jose/releases) - [Commits](https://github.com/mpdavis/python-jose/compare/1.3.2...3.0.1) Signed-off-by: Christian Tavares --- setup.py | 2 +- tests/test_jwk.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 6994681..53b5b72 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ packages=['hydra'], install_requires=[ 'pycryptodome==3.6.6', - 'python-jose==1.3.2', + 'python-jose==3.0.1', 'requests==2.19.1', ], author='O.S. Systems Software LTDA', diff --git a/tests/test_jwk.py b/tests/test_jwk.py index e1ff060..7dbf2e1 100644 --- a/tests/test_jwk.py +++ b/tests/test_jwk.py @@ -5,7 +5,7 @@ import unittest from unittest.mock import patch -from Crypto.PublicKey.RSA import _RSAobj +from Crypto.PublicKey.RSA import RsaKey from hydra import Hydra, JWK from hydra.exceptions import HydraResponseError, HydraRequestError @@ -55,8 +55,8 @@ def test_can_convert_base64_to_int(self): def test_can_convert_to_RSA(self): jwk_public = JWK(**self.public_key) jwk_private = JWK(**self.private_key) - self.assertIsInstance(jwk_public.to_rsa(), _RSAobj) - self.assertIsInstance(jwk_private.to_rsa(), _RSAobj) + self.assertIsInstance(jwk_public.to_rsa(), RsaKey) + self.assertIsInstance(jwk_private.to_rsa(), RsaKey) class JWKManagerTestCase(unittest.TestCase):