pypomes-iam 0.5.2__tar.gz → 0.5.4__tar.gz
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-iam might be problematic. Click here for more details.
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/PKG-INFO +1 -1
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/pyproject.toml +1 -1
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/iam_common.py +1 -1
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/provider_pomes.py +3 -3
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/.gitignore +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/LICENSE +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/README.md +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/__init__.py +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/iam_pomes.py +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/iam_services.py +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/jusbr_pomes.py +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/keycloak_pomes.py +0 -0
- {pypomes_iam-0.5.2 → pypomes_iam-0.5.4}/src/pypomes_iam/token_pomes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pypomes_iam
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: A collection of Python pomes, penyeach (IAM modules)
|
|
5
5
|
Project-URL: Homepage, https://github.com/TheWiseCoder/PyPomes-IAM
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/TheWiseCoder/PyPomes-IAM/issues
|
|
@@ -152,7 +152,7 @@ def _get_public_key(iam_server: IamServer,
|
|
|
152
152
|
lifetime: int = registry["pk-lifetime"] or 0
|
|
153
153
|
registry["pk-expiration"] = now + lifetime
|
|
154
154
|
elif logger:
|
|
155
|
-
msg: str = f"GET failure, status {response.status_code}, reason
|
|
155
|
+
msg: str = f"GET failure, status {response.status_code}, reason {response.reason}"
|
|
156
156
|
if hasattr(response, "content") and response.content:
|
|
157
157
|
msg += f", content {response.content}"
|
|
158
158
|
logger.error(msg=msg)
|
|
@@ -104,9 +104,9 @@ def provider_get_token(provider_id: str,
|
|
|
104
104
|
enc_bytes: bytes = b64encode(f"{user}:{pwd}".encode())
|
|
105
105
|
headers_data["Authorization"] = f"Basic {enc_bytes.decode()}"
|
|
106
106
|
url: str = provider.get("url")
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
if logger:
|
|
108
|
+
logger.debug(msg=f"POST {url}, {json.dumps(obj=body_data,
|
|
109
|
+
ensure_ascii=False)}")
|
|
110
110
|
try:
|
|
111
111
|
# typical return on a token request:
|
|
112
112
|
# {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|