Skip to content

Commit 65dad06

Browse files
authored
Merge pull request #57 from its-dirg/deps-fix
Remove explicit pyoidc dependency to avoid collision with pyop.
2 parents 2016c45 + 363631f commit 65dad06

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
packages=find_packages('src/'),
1616
package_dir={'': 'src'},
1717
install_requires=[
18-
"oic>=0.8.4.0",
1918
"pyop==2.0.1",
20-
"pyjwkest==1.1.5",
2119
"pysaml2==4.2.0",
20+
"pycryptodomex",
2221
"requests",
2322
"PyYAML",
2423
"gunicorn",

src/satosa/state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from http.cookies import SimpleCookie
1111
from lzma import LZMADecompressor, LZMACompressor
1212

13-
from Crypto import Random
14-
from Crypto.Cipher import AES
13+
from Cryptodome import Random
14+
from Cryptodome.Cipher import AES
1515

1616
from .exception import SATOSAStateError
1717
from .logging_util import satosa_logging

tests/satosa/backends/test_openid_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import oic
88
import pytest
99
import responses
10-
from Crypto.PublicKey import RSA
10+
from Cryptodome.PublicKey import RSA
1111
from jwkest.jwk import RSAKey
1212
from oic.oic.message import RegistrationRequest, IdToken
1313
from oic.utils.authn.client import CLIENT_AUTHN_METHOD

tests/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from datetime import datetime
77
from urllib.parse import parse_qsl, urlparse
88

9-
from Crypto.PublicKey import RSA
9+
from Cryptodome.PublicKey import RSA
1010
from bs4 import BeautifulSoup
1111
from saml2 import server, BINDING_HTTP_POST, BINDING_HTTP_REDIRECT
1212
from saml2.authn_context import AuthnBroker, authn_context_class_ref, PASSWORD

0 commit comments

Comments
 (0)