pypomes-jwt 0.8.8__py3-none-any.whl → 0.8.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pypomes-jwt might be problematic. Click here for more details.

@@ -49,7 +49,7 @@ JWT_REFRESH_MAX_AGE: Final[int] = env_get_int(key=f"{APP_PREFIX}_JWT_REFRESH_MAX
49
49
  JWT_ACCOUNT_LIMIT: Final[int] = env_get_int(key=f"{APP_PREFIX}_JWT_ACCOUNT_LIMIT")
50
50
 
51
51
  # recommended: allow the encode and decode keys to be generated anew when app starts
52
- __encoding_key: bytes = env_get_bytes(key=f"{APP_PREFIX}_JWT_ENCODE_KEY",
52
+ __encoding_key: bytes = env_get_bytes(key=f"{APP_PREFIX}_JWT_ENCODING_KEY",
53
53
  encoding="base64url")
54
54
  __decoding_key: bytes
55
55
  if JWT_DEFAULT_ALGORITHM in ["HS256", "HS512"]:
@@ -57,7 +57,7 @@ if JWT_DEFAULT_ALGORITHM in ["HS256", "HS512"]:
57
57
  __encoding_key = token_bytes(nbytes=32)
58
58
  __decoding_key = __encoding_key
59
59
  else:
60
- __decoding_key: bytes = env_get_bytes(key=f"{APP_PREFIX}_JWT_DECODE_KEY")
60
+ __decoding_key: bytes = env_get_bytes(key=f"{APP_PREFIX}_JWT_DECODING_KEY")
61
61
  if not __encoding_key or not __decoding_key:
62
62
  __priv_key: RSAPrivateKey = rsa.generate_private_key(public_exponent=65537,
63
63
  key_size=2048)
pypomes_jwt/jwt_pomes.py CHANGED
@@ -227,7 +227,7 @@ def jwt_validate_token(errors: list[str] | None,
227
227
  "verify_nbf": True
228
228
  },
229
229
  key=token_decoder,
230
- require=["exp", "nbf"],
230
+ require=["exp"],
231
231
  algorithms=token_alg)
232
232
  if account_id and payload.get("sub") != account_id:
233
233
  op_errors.append("Token does not belong to account")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_jwt
3
- Version: 0.8.8
3
+ Version: 0.8.9
4
4
  Summary: A collection of Python pomes, penyeach (JWT module)
5
5
  Project-URL: Homepage, https://github.com/TheWiseCoder/PyPomes-JWT
6
6
  Project-URL: Bug Tracker, https://github.com/TheWiseCoder/PyPomes-JWT/issues
@@ -0,0 +1,8 @@
1
+ pypomes_jwt/__init__.py,sha256=P7rT6ZVE2BzU3ntYOr83H5iOf5JcCmjDUYakNbrRAP0,1266
2
+ pypomes_jwt/jwt_constants.py,sha256=IQV39AiZKGuU8XxZBgJ-KJZQZ_mmnxyOnRZeuxlqDRk,4045
3
+ pypomes_jwt/jwt_data.py,sha256=FU4zvFr-1ZbClM8ozt9asR2EGZe-xYX3046dxWnGays,22529
4
+ pypomes_jwt/jwt_pomes.py,sha256=XWnP4U2K5FPbP-N5npQboNdMZ-MMLpXTfd8Yf82aFls,17217
5
+ pypomes_jwt-0.8.9.dist-info/METADATA,sha256=orVERU_gL14nmPjxxNMrxyEKy3q4LLBD2vMokmyECSQ,632
6
+ pypomes_jwt-0.8.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ pypomes_jwt-0.8.9.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
8
+ pypomes_jwt-0.8.9.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- pypomes_jwt/__init__.py,sha256=P7rT6ZVE2BzU3ntYOr83H5iOf5JcCmjDUYakNbrRAP0,1266
2
- pypomes_jwt/jwt_constants.py,sha256=fT9sak0ud_sE-5XRU9qMn7I4h4QS6CTG2Q7KCbrASw4,4041
3
- pypomes_jwt/jwt_data.py,sha256=FU4zvFr-1ZbClM8ozt9asR2EGZe-xYX3046dxWnGays,22529
4
- pypomes_jwt/jwt_pomes.py,sha256=MBwGxA1VvOS1E2t6CrhYrsXbOdG3LhHuPamjJkQjrJg,17224
5
- pypomes_jwt-0.8.8.dist-info/METADATA,sha256=hMzfbkk3BKHgy4t3SAxPkO8WYK19NZBivzDCtIRbnjg,632
6
- pypomes_jwt-0.8.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- pypomes_jwt-0.8.8.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
8
- pypomes_jwt-0.8.8.dist-info/RECORD,,