pypomes-iam 0.4.9__py3-none-any.whl → 0.5.0__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_common.py CHANGED
@@ -198,7 +198,7 @@ def _get_iam_server(endpoint: str,
198
198
  result = IamServer.IAM_KEYCLOAK
199
199
  else:
200
200
  result = None
201
- msg: str = f"Unknown endpoind {endpoint}"
201
+ msg: str = f"Unable to find a IAM server to service endpoint '{endpoint}'"
202
202
  if logger:
203
203
  logger.error(msg=msg)
204
204
  if isinstance(errors, list):
pypomes_iam/iam_pomes.py CHANGED
@@ -421,12 +421,13 @@ def __post_for_token(iam_server: IamServer,
421
421
  data=body_data)
422
422
  if response.status_code == 200:
423
423
  # request succeeded
424
- if logger:
425
- logger.debug(msg=f"POST success, status {response.status_code}")
426
424
  result = response.json()
425
+ if logger:
426
+ logger.debug(msg=f"POST success, {json.dumps(obj=result,
427
+ ensure_ascii=False)}")
427
428
  else:
428
429
  # request resulted in error
429
- err_msg = f"POST failure, status {response.status_code}, reason '{response.reason}'"
430
+ err_msg = f"POST failure, status {response.status_code}, reason {response.reason}"
430
431
  if hasattr(response, "content") and response.content:
431
432
  err_msg += f", content '{response.content}'"
432
433
  if logger:
@@ -502,7 +503,8 @@ def __validate_and_store(iam_server: IamServer,
502
503
  users: dict[str, dict[str, Any]] = _get_iam_users(iam_server=iam_server,
503
504
  errors=errors,
504
505
  logger=logger)
505
- if users:
506
+ # must test with 'not errors'
507
+ if not errors:
506
508
  user_id: str = login_id if login_id else claims["payload"][recipient_attr]
507
509
  users[user_id] = user_data
508
510
  result = (user_id, token)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_iam
3
- Version: 0.4.9
3
+ Version: 0.5.0
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
@@ -1,12 +1,12 @@
1
1
  pypomes_iam/__init__.py,sha256=KX_QLdqAD-dNUl3G1mDeutxL9e58S9OsMoJlrgM9R28,1027
2
- pypomes_iam/iam_common.py,sha256=uZBVLjpEiVuE3SFDPR9NX_Y4R5lWoXGJP8ACNBcWLms,9319
3
- pypomes_iam/iam_pomes.py,sha256=FOJ96SGyb8RZWDg1QrdEz2J1y5zoj_F3xADa7i-egG4,24141
2
+ pypomes_iam/iam_common.py,sha256=vlH4vRZPyEodXAiqc7HFMCHDNAUmVWO1P96Cj3OS4t0,9352
3
+ pypomes_iam/iam_pomes.py,sha256=Llo8xUFGh48C_oOSjVB0l-e7mODnZJUrlTfKaKgilpo,24276
4
4
  pypomes_iam/iam_services.py,sha256=lNJUwJHGGdcTKtbSzdGH5FeD9yjvXGYjNHApuzyXgxc,11651
5
5
  pypomes_iam/jusbr_pomes.py,sha256=hqdyRgg44mppe9B9VpxSM21V0V2kjWTO8pTx6HN0omo,5734
6
6
  pypomes_iam/keycloak_pomes.py,sha256=OvPhfUXpqxll-p6CdRq2j5jp5ST9Z0feXg6TVbqC2cY,6751
7
7
  pypomes_iam/provider_pomes.py,sha256=zmMqZw8kuJ7aemRZFZSQiMb_J54qIJxyV2NXOFkDkhM,7223
8
8
  pypomes_iam/token_pomes.py,sha256=1g6PMNNMbmdwLrsvSXvpO8-zdRhso1IFnwAyndNmV4Q,5332
9
- pypomes_iam-0.4.9.dist-info/METADATA,sha256=_CvVENvOsD2ncew2QsxxqSdv5uMKWQi68r-jObrJ-9M,694
10
- pypomes_iam-0.4.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- pypomes_iam-0.4.9.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
12
- pypomes_iam-0.4.9.dist-info/RECORD,,
9
+ pypomes_iam-0.5.0.dist-info/METADATA,sha256=_BGZie1hLD27Jnt86JcG_1be_uk-TGzzy29MTARXoLw,694
10
+ pypomes_iam-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ pypomes_iam-0.5.0.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
12
+ pypomes_iam-0.5.0.dist-info/RECORD,,