Skip to content

Commit b4c2b91

Browse files
committed
merging
2 parents 55728b3 + bd64577 commit b4c2b91

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def run_tests(self):
7979
"Programming Language :: Python :: 3.10",
8080
"Topic :: Software Development :: Libraries :: Python Modules"],
8181
install_requires=[
82-
"cryptojwt>=1.8.0",
82+
"cryptojwt>=1.8.1",
8383
"pyOpenSSL",
8484
"filelock>=3.0.12",
8585
'pyyaml>=5.1.2',

src/idpyoidc/encrypter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ def default_crypt_config():
1212
return {
1313
"class": DEFAULT_CRYPTO,
1414
"kwargs": {
15-
"password": os.urandom(16),
16-
"salt": os.urandom(16)
15+
"key": os.urandom(32),
16+
# "password": os.urandom(16),
17+
# "salt": os.urandom(16)
1718
# "keys": {
1819
# "key_defs": [
1920
# {"type": "OCT", "use": ["enc"], "kid": "password"},

tests/private/token_jwks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"keys": [{"kty": "oct", "use": "enc", "kid": "code", "k": "-79_--FvcCmJfDcoWkNsQGdsf1u9XOY4"}, {"kty": "oct", "use": "enc", "kid": "refresh", "k": "mgbrjz28uGedHlUyUoJsDJZpRndQLOcQ"}]}
1+
{"keys": [{"kty": "oct", "use": "enc", "kid": "code", "k": "vSHDkLBHhDStkR0NWu8519rmV5zmnm5_"}]}

tests/test_20_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_entity_config(filename):
9696
def test_init_crypto_None():
9797
_res = init_encrypter()
9898
assert _res["conf"]["class"] == DEFAULT_CRYPTO
99-
assert set(_res["conf"]["kwargs"].keys()) == {"password", "salt"}
99+
assert set(_res["conf"]["kwargs"].keys()) == {"key"}
100100
assert isinstance(_res["encrypter"], FernetEncrypter)
101101

102102

0 commit comments

Comments
 (0)