pypomes-iam 0.4.5__py3-none-any.whl → 0.4.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-iam might be problematic. Click here for more details.
- pypomes_iam/iam_pomes.py +6 -4
- pypomes_iam/jusbr_pomes.py +1 -2
- pypomes_iam/keycloak_pomes.py +1 -2
- {pypomes_iam-0.4.5.dist-info → pypomes_iam-0.4.6.dist-info}/METADATA +1 -1
- pypomes_iam-0.4.6.dist-info/RECORD +12 -0
- pypomes_iam-0.4.5.dist-info/RECORD +0 -12
- {pypomes_iam-0.4.5.dist-info → pypomes_iam-0.4.6.dist-info}/WHEEL +0 -0
- {pypomes_iam-0.4.5.dist-info → pypomes_iam-0.4.6.dist-info}/licenses/LICENSE +0 -0
pypomes_iam/iam_pomes.py
CHANGED
|
@@ -239,7 +239,7 @@ def login_callback(iam_server: IamServer,
|
|
|
239
239
|
body_data: dict[str, Any] = {
|
|
240
240
|
"grant_type": "authorization_code",
|
|
241
241
|
"code": code,
|
|
242
|
-
"redirect_uri": user_data
|
|
242
|
+
"redirect_uri": user_data.pop("redirect-uri")
|
|
243
243
|
}
|
|
244
244
|
now: int = int(datetime.now(tz=TZ_LOCAL).timestamp())
|
|
245
245
|
token_data: dict[str, Any] = __post_for_token(iam_server=iam_server,
|
|
@@ -255,7 +255,7 @@ def login_callback(iam_server: IamServer,
|
|
|
255
255
|
errors=errors,
|
|
256
256
|
logger=logger)
|
|
257
257
|
else:
|
|
258
|
-
msg: str = "
|
|
258
|
+
msg: str = f"State '{oauth_state}' not found in {iam_server}'s registry"
|
|
259
259
|
if logger:
|
|
260
260
|
logger.error(msg=msg)
|
|
261
261
|
if isinstance(errors, list):
|
|
@@ -398,14 +398,16 @@ def __post_for_token(iam_server: IamServer,
|
|
|
398
398
|
# complete the data to send in body of request
|
|
399
399
|
body_data["client_id"] = registry["client-id"]
|
|
400
400
|
client_secret: str = registry["client-secret"]
|
|
401
|
-
if client_secret:
|
|
402
|
-
body_data["client_secret"] = client_secret
|
|
403
401
|
|
|
404
402
|
# obtain the token
|
|
405
403
|
url: str = registry["base-url"] + "/protocol/openid-connect/token"
|
|
404
|
+
|
|
405
|
+
# log the POST ('client_secret' data must not be shown in log)
|
|
406
406
|
if logger:
|
|
407
407
|
logger.debug(msg=f"POST '{url}', data {json.dumps(obj=body_data,
|
|
408
408
|
ensure_ascii=False)}")
|
|
409
|
+
if client_secret:
|
|
410
|
+
body_data["client_secret"] = client_secret
|
|
409
411
|
try:
|
|
410
412
|
# typical return on a token request:
|
|
411
413
|
# {
|
pypomes_iam/jusbr_pomes.py
CHANGED
pypomes_iam/keycloak_pomes.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pypomes_iam
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.6
|
|
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
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
pypomes_iam/__init__.py,sha256=KX_QLdqAD-dNUl3G1mDeutxL9e58S9OsMoJlrgM9R28,1027
|
|
2
|
+
pypomes_iam/iam_common.py,sha256=duAi5kUpJZTm_66DcamdARLIIhfTvFZLuLcNd4QPel8,9323
|
|
3
|
+
pypomes_iam/iam_pomes.py,sha256=JkvdDZbkcg-xfwcYeUHpvVfpaLcd1pHnCfaVY2NlUyo,24240
|
|
4
|
+
pypomes_iam/iam_services.py,sha256=lNJUwJHGGdcTKtbSzdGH5FeD9yjvXGYjNHApuzyXgxc,11651
|
|
5
|
+
pypomes_iam/jusbr_pomes.py,sha256=lZ_NhHbYj17hI9o_hdxvGiKaIlxRu3y1jVypb57VX4E,5723
|
|
6
|
+
pypomes_iam/keycloak_pomes.py,sha256=GSqCEa82r5t0Rz9Tp5GI0eJHjfA3dqufgFZIzOO_Z2o,6740
|
|
7
|
+
pypomes_iam/provider_pomes.py,sha256=vfVaLGYCKSAjoB58CTw4hnUQHriMONHql_5hxjCEeHE,6358
|
|
8
|
+
pypomes_iam/token_pomes.py,sha256=1g6PMNNMbmdwLrsvSXvpO8-zdRhso1IFnwAyndNmV4Q,5332
|
|
9
|
+
pypomes_iam-0.4.6.dist-info/METADATA,sha256=wKKN0cityUzE8n6OoxFEmjcIaVaULSrgPCnF0bWeZok,694
|
|
10
|
+
pypomes_iam-0.4.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
pypomes_iam-0.4.6.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
|
|
12
|
+
pypomes_iam-0.4.6.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pypomes_iam/__init__.py,sha256=KX_QLdqAD-dNUl3G1mDeutxL9e58S9OsMoJlrgM9R28,1027
|
|
2
|
-
pypomes_iam/iam_common.py,sha256=duAi5kUpJZTm_66DcamdARLIIhfTvFZLuLcNd4QPel8,9323
|
|
3
|
-
pypomes_iam/iam_pomes.py,sha256=8-0s5nXNF5NlbGSmZGyLKqOwFvyueSQUoRXvFyIc4-U,24121
|
|
4
|
-
pypomes_iam/iam_services.py,sha256=lNJUwJHGGdcTKtbSzdGH5FeD9yjvXGYjNHApuzyXgxc,11651
|
|
5
|
-
pypomes_iam/jusbr_pomes.py,sha256=G-COBstBeQeD7dPgvf2MI1E8r2-ACHHwzhyfsphhKgw,5758
|
|
6
|
-
pypomes_iam/keycloak_pomes.py,sha256=JxVVFdhXJypK5x9ocn7283pB1xJbS-yPgStkSFS12HM,6775
|
|
7
|
-
pypomes_iam/provider_pomes.py,sha256=vfVaLGYCKSAjoB58CTw4hnUQHriMONHql_5hxjCEeHE,6358
|
|
8
|
-
pypomes_iam/token_pomes.py,sha256=1g6PMNNMbmdwLrsvSXvpO8-zdRhso1IFnwAyndNmV4Q,5332
|
|
9
|
-
pypomes_iam-0.4.5.dist-info/METADATA,sha256=-v-pps3pJLdd129md7r0ZKaA4SN5oYiCdlnLeQmoVb0,694
|
|
10
|
-
pypomes_iam-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
-
pypomes_iam-0.4.5.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
|
|
12
|
-
pypomes_iam-0.4.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|