pypomes-jwt 1.3.5__py3-none-any.whl → 1.3.6__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_config.py +1 -1
- pypomes_jwt/jwt_providers.py +4 -5
- {pypomes_jwt-1.3.5.dist-info → pypomes_jwt-1.3.6.dist-info}/METADATA +4 -4
- pypomes_jwt-1.3.6.dist-info/RECORD +9 -0
- pypomes_jwt-1.3.5.dist-info/RECORD +0 -9
- {pypomes_jwt-1.3.5.dist-info → pypomes_jwt-1.3.6.dist-info}/WHEEL +0 -0
- {pypomes_jwt-1.3.5.dist-info → pypomes_jwt-1.3.6.dist-info}/licenses/LICENSE +0 -0
pypomes_jwt/jwt_config.py
CHANGED
|
@@ -43,7 +43,7 @@ elif not _encoding_key or not _decoding_key:
|
|
|
43
43
|
format=serialization.PublicFormat.SubjectPublicKeyInfo)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
# HAZARD: instances must be '.value' qualified, as this is not a subclass of either 'StrEnum' or 'IntEnum'
|
|
46
|
+
# HAZARD: instances uses must be '.value' qualified, as this is not a subclass of either 'StrEnum' or 'IntEnum'
|
|
47
47
|
class JwtConfig(Enum):
|
|
48
48
|
"""
|
|
49
49
|
Parameters for JWT token issuance.
|
pypomes_jwt/jwt_providers.py
CHANGED
|
@@ -63,7 +63,7 @@ def provider_register(provider_id: str,
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
def provider_get_token(provider_id: str,
|
|
66
|
-
errors: list[str]
|
|
66
|
+
errors: list[str] = None,
|
|
67
67
|
logger: Logger = None) -> str | None:
|
|
68
68
|
"""
|
|
69
69
|
Obtain an authentication token from the external provider *provider_id*.
|
|
@@ -96,12 +96,12 @@ def provider_get_token(provider_id: str,
|
|
|
96
96
|
try:
|
|
97
97
|
# typical return on a token request:
|
|
98
98
|
# {
|
|
99
|
-
# "token_type": "
|
|
99
|
+
# "token_type": "Bearer",
|
|
100
100
|
# "access_token": <str>,
|
|
101
101
|
# "expires_in": <number-of-seconds>,
|
|
102
102
|
# optional data:
|
|
103
103
|
# "refresh_token": <str>,
|
|
104
|
-
# "refresh_expires_in": <
|
|
104
|
+
# "refresh_expires_in": <number-of-seconds>
|
|
105
105
|
# }
|
|
106
106
|
response: Response = requests.post(url=url,
|
|
107
107
|
data=body_data,
|
|
@@ -116,8 +116,7 @@ def provider_get_token(provider_id: str,
|
|
|
116
116
|
provider["token"] = reply.get("access_token")
|
|
117
117
|
provider["expiration"] = now + int(reply.get("expires_in"))
|
|
118
118
|
if logger:
|
|
119
|
-
logger.debug(msg=f"POST '{url}': status "
|
|
120
|
-
f"{response.status_code}, reason '{response.reason}')")
|
|
119
|
+
logger.debug(msg=f"POST '{url}': status {response.status_code}")
|
|
121
120
|
except Exception as e:
|
|
122
121
|
# the operation raised an exception
|
|
123
122
|
err_msg = exc_format(exc=e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pypomes_jwt
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.6
|
|
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
|
|
@@ -10,8 +10,8 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.12
|
|
13
|
-
Requires-Dist: cryptography>=
|
|
13
|
+
Requires-Dist: cryptography>=46.0.2
|
|
14
14
|
Requires-Dist: flask>=3.1.2
|
|
15
15
|
Requires-Dist: pyjwt>=2.10.1
|
|
16
|
-
Requires-Dist: pypomes-core>=2.7.
|
|
17
|
-
Requires-Dist: pypomes-db>=2.7.
|
|
16
|
+
Requires-Dist: pypomes-core>=2.7.6
|
|
17
|
+
Requires-Dist: pypomes-db>=2.7.6
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
pypomes_jwt/__init__.py,sha256=vXAeaEnuUqpvGtV465TsW2Lf3ihijrMP2Hm4My79y88,968
|
|
2
|
+
pypomes_jwt/jwt_config.py,sha256=GAFrvsCeBUIt2OzO-xLSM6qTe7iehvqrcHlu_CUnGAI,3638
|
|
3
|
+
pypomes_jwt/jwt_pomes.py,sha256=WWmZYVpG6wqlIjcJU3jNyBquCgfB-OcgCJBmm6imL4Q,23524
|
|
4
|
+
pypomes_jwt/jwt_providers.py,sha256=3o48fGZ9W0xwpdivECMb2E3GLdraU-Vh8zRyejbLgpc,5853
|
|
5
|
+
pypomes_jwt/jwt_registry.py,sha256=ypBEoL0I2F08sR2G2VO9wXxVeE252lNzjIAC3FGORhA,22631
|
|
6
|
+
pypomes_jwt-1.3.6.dist-info/METADATA,sha256=bWvYWUMYqc6AecDMkK0p3KxvXRMLZUTEglopfd8pk_A,660
|
|
7
|
+
pypomes_jwt-1.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
pypomes_jwt-1.3.6.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
9
|
+
pypomes_jwt-1.3.6.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
pypomes_jwt/__init__.py,sha256=vXAeaEnuUqpvGtV465TsW2Lf3ihijrMP2Hm4My79y88,968
|
|
2
|
-
pypomes_jwt/jwt_config.py,sha256=dF4wvr68b6gbYvDGMGGaaz792b2cKT0277zmkFQYHII,3633
|
|
3
|
-
pypomes_jwt/jwt_pomes.py,sha256=WWmZYVpG6wqlIjcJU3jNyBquCgfB-OcgCJBmm6imL4Q,23524
|
|
4
|
-
pypomes_jwt/jwt_providers.py,sha256=LL2OxdyGH3_O-qEOVjg_GsPQVRtaSi37AE-BOZ6tiqs,5928
|
|
5
|
-
pypomes_jwt/jwt_registry.py,sha256=ypBEoL0I2F08sR2G2VO9wXxVeE252lNzjIAC3FGORhA,22631
|
|
6
|
-
pypomes_jwt-1.3.5.dist-info/METADATA,sha256=o63TlCQlQoaChb4vB3IBcW59RNTYhHtWujTS6cWm-8g,660
|
|
7
|
-
pypomes_jwt-1.3.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
pypomes_jwt-1.3.5.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
|
|
9
|
-
pypomes_jwt-1.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|