pypomes-jwt 0.6.7__py3-none-any.whl → 0.6.8__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 +3 -3
- {pypomes_jwt-0.6.7.dist-info → pypomes_jwt-0.6.8.dist-info}/METADATA +1 -1
- pypomes_jwt-0.6.8.dist-info/RECORD +7 -0
- pypomes_jwt-0.6.7.dist-info/RECORD +0 -7
- {pypomes_jwt-0.6.7.dist-info → pypomes_jwt-0.6.8.dist-info}/WHEEL +0 -0
- {pypomes_jwt-0.6.7.dist-info → pypomes_jwt-0.6.8.dist-info}/licenses/LICENSE +0 -0
pypomes_jwt/jwt_data.py
CHANGED
|
@@ -209,7 +209,7 @@ class JwtData:
|
|
|
209
209
|
custom_claims: dict[str, Any] = access_data.get("custom-claims")
|
|
210
210
|
if superceding_claims:
|
|
211
211
|
custom_claims = custom_claims.copy()
|
|
212
|
-
custom_claims.update(
|
|
212
|
+
custom_claims.update(superceding_claims)
|
|
213
213
|
|
|
214
214
|
# obtain a new token, if the current token has expired
|
|
215
215
|
just_now: int = int(datetime.now(tz=timezone.utc).timestamp())
|
|
@@ -241,8 +241,8 @@ class JwtData:
|
|
|
241
241
|
else:
|
|
242
242
|
# JWT service is being provided locally
|
|
243
243
|
claims: dict[str, Any] = access_data.get("public-claims").copy()
|
|
244
|
-
claims.update(
|
|
245
|
-
claims.update(
|
|
244
|
+
claims.update(reserved_claims)
|
|
245
|
+
claims.update(custom_claims)
|
|
246
246
|
# may raise an exception
|
|
247
247
|
token: str = jwt.encode(payload=claims,
|
|
248
248
|
key=(control_data.get("hs-secret-key") or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pypomes_jwt
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.8
|
|
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=CwpFtZEi1Yo1i4ulyR65yvo_fJpSRMJsXwzV75E3K0A,988
|
|
2
|
+
pypomes_jwt/jwt_data.py,sha256=WFs3YTFdstpWsKcrA_0GL5jum2_p-uO2mnCEcLOgV0E,19674
|
|
3
|
+
pypomes_jwt/jwt_pomes.py,sha256=rhYoqD57yXayJoePdjbB3RfPAIg23o6YQKkdnD4tz0c,14222
|
|
4
|
+
pypomes_jwt-0.6.8.dist-info/METADATA,sha256=tdlvTwGfeMktSJWEX-tB1suFTyg1S-2FZCQxaAHgB1I,599
|
|
5
|
+
pypomes_jwt-0.6.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
pypomes_jwt-0.6.8.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
7
|
+
pypomes_jwt-0.6.8.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pypomes_jwt/__init__.py,sha256=CwpFtZEi1Yo1i4ulyR65yvo_fJpSRMJsXwzV75E3K0A,988
|
|
2
|
-
pypomes_jwt/jwt_data.py,sha256=icnNzfCBPN94z3saT_fhDSEpj_GGBeSW59ychNfkxA8,19680
|
|
3
|
-
pypomes_jwt/jwt_pomes.py,sha256=rhYoqD57yXayJoePdjbB3RfPAIg23o6YQKkdnD4tz0c,14222
|
|
4
|
-
pypomes_jwt-0.6.7.dist-info/METADATA,sha256=8j6R2ZgQXHbw7Wyziiv7BfGAQdlld2bGHcDL14ijpn4,599
|
|
5
|
-
pypomes_jwt-0.6.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
pypomes_jwt-0.6.7.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
7
|
-
pypomes_jwt-0.6.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|