Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions tests/test_jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down