pypomes-jwt 0.4.4__py3-none-any.whl → 0.4.5__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.
- pypomes_jwt/jwt_data.py +5 -5
- {pypomes_jwt-0.4.4.dist-info → pypomes_jwt-0.4.5.dist-info}/METADATA +1 -1
- pypomes_jwt-0.4.5.dist-info/RECORD +7 -0
- pypomes_jwt-0.4.4.dist-info/RECORD +0 -7
- {pypomes_jwt-0.4.4.dist-info → pypomes_jwt-0.4.5.dist-info}/WHEEL +0 -0
- {pypomes_jwt-0.4.4.dist-info → pypomes_jwt-0.4.5.dist-info}/licenses/LICENSE +0 -0
pypomes_jwt/jwt_data.py
CHANGED
|
@@ -122,9 +122,9 @@ class JwtData:
|
|
|
122
122
|
with self.access_lock:
|
|
123
123
|
self.access_data.append(item_data)
|
|
124
124
|
if logger:
|
|
125
|
-
logger.debug("JWT token data added to storage for
|
|
125
|
+
logger.debug(f"JWT token data added to storage for '{service_url}'")
|
|
126
126
|
elif logger:
|
|
127
|
-
logger.warning("JWT token data already exists for
|
|
127
|
+
logger.warning(f"JWT token data already exists for '{service_url}'")
|
|
128
128
|
|
|
129
129
|
def remove_access_data(self,
|
|
130
130
|
service_url: str,
|
|
@@ -141,9 +141,9 @@ class JwtData:
|
|
|
141
141
|
with self.access_lock:
|
|
142
142
|
self.access_data.remove(item_data)
|
|
143
143
|
if logger:
|
|
144
|
-
logger.debug("Removed access data for
|
|
144
|
+
logger.debug(f"Removed access data for '{service_url}'")
|
|
145
145
|
elif logger:
|
|
146
|
-
logger.warning("No access data found for
|
|
146
|
+
logger.warning(f"No access data found for '{service_url}'")
|
|
147
147
|
|
|
148
148
|
def retrieve_access_data(self,
|
|
149
149
|
service_url: str) -> dict[str, dict[str, Any]]:
|
|
@@ -243,7 +243,7 @@ class JwtData:
|
|
|
243
243
|
raise RuntimeError(" - ".join(errors))
|
|
244
244
|
|
|
245
245
|
# return the token
|
|
246
|
-
diff: timedelta = standard_claims.get("exp") - just_now
|
|
246
|
+
diff: timedelta = standard_claims.get("exp") - just_now - timedelta(seconds=10)
|
|
247
247
|
result = {
|
|
248
248
|
"access_token": control_data.get("access-token"),
|
|
249
249
|
"expires_in": math.trunc(diff.total_seconds())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pypomes_jwt
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.5
|
|
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,7 @@
|
|
|
1
|
+
pypomes_jwt/__init__.py,sha256=wIbTPmnxyGFuSdawdyglNn7GVKEvPZ_57MF9HBbWclc,952
|
|
2
|
+
pypomes_jwt/jwt_data.py,sha256=YlJuZ13CJdGPhXfLuOMmX2r9pNNwS7BSDlPflAqn6KQ,15870
|
|
3
|
+
pypomes_jwt/jwt_pomes.py,sha256=CTMbpBwHXpvKjHD7qqWKQwh1mtcCMvBDlefyKMlPAM0,10351
|
|
4
|
+
pypomes_jwt-0.4.5.dist-info/METADATA,sha256=y6whFFM8dSApf1U4Pz1sk10-ZrfEbp5T1ny-uUxHc9k,687
|
|
5
|
+
pypomes_jwt-0.4.5.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
+
pypomes_jwt-0.4.5.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
7
|
+
pypomes_jwt-0.4.5.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pypomes_jwt/__init__.py,sha256=wIbTPmnxyGFuSdawdyglNn7GVKEvPZ_57MF9HBbWclc,952
|
|
2
|
-
pypomes_jwt/jwt_data.py,sha256=6gHhnpgw2U3hhOFZBcLk_nvsMmUontZfQ_LcLubNNYw,15860
|
|
3
|
-
pypomes_jwt/jwt_pomes.py,sha256=CTMbpBwHXpvKjHD7qqWKQwh1mtcCMvBDlefyKMlPAM0,10351
|
|
4
|
-
pypomes_jwt-0.4.4.dist-info/METADATA,sha256=a6bUmFrbKKC0USqtK2iNtGKKxl9YtTxsUCp9GqSC8lA,687
|
|
5
|
-
pypomes_jwt-0.4.4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
-
pypomes_jwt-0.4.4.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
7
|
-
pypomes_jwt-0.4.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|