pypomes-iam 0.4.6__py3-none-any.whl → 0.4.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-iam might be problematic. Click here for more details.

pypomes_iam/iam_pomes.py CHANGED
@@ -490,7 +490,7 @@ def __validate_and_store(iam_server: IamServer,
490
490
  errors=errors,
491
491
  logger=logger)
492
492
  if public_key:
493
- recipient_attr = registry["recipient_attr"]
493
+ recipient_attr = registry["recipient-attr"]
494
494
  login_id = user_data.pop("login-id", None)
495
495
  claims: dict[str, dict[str, Any]] = token_validate(token=token,
496
496
  issuer=registry["base-url"],
@@ -1,4 +1,3 @@
1
- import sys
2
1
  from cachetools import Cache, FIFOCache
3
2
  from flask import Flask
4
3
  from logging import Logger
@@ -65,13 +64,14 @@ def jusbr_setup(flask_app: Flask,
65
64
  cache["users"] = {}
66
65
  with _iam_lock:
67
66
  _IAM_SERVERS[IamServer.IAM_JUSRBR] = {
67
+ "base-url": base_url,
68
68
  "client-id": client_id,
69
69
  "client-secret": client_secret,
70
70
  "client-timeout": client_timeout,
71
- "recipient-attr": recipient_attribute,
72
- "base-url": base_url,
73
- "pk-expiration": sys.maxsize,
71
+ "public-key": None,
74
72
  "pk-lifetime": public_key_lifetime,
73
+ "pk-expiration": 0,
74
+ "recipient-attr": recipient_attribute,
75
75
  "cache": cache
76
76
  }
77
77
 
@@ -1,4 +1,3 @@
1
- import sys
2
1
  from cachetools import Cache, FIFOCache
3
2
  from flask import Flask
4
3
  from logging import Logger
@@ -74,13 +73,14 @@ def keycloak_setup(flask_app: Flask,
74
73
  cache["users"] = {}
75
74
  with _iam_lock:
76
75
  _IAM_SERVERS[IamServer.IAM_KEYCLOAK] = {
76
+ "base-url": f"{base_url}/realms/{realm}",
77
77
  "client-id": client_id,
78
78
  "client-secret": client_secret,
79
79
  "client-timeout": client_timeout,
80
- "recipient-attr": recipient_attribute,
81
- "base-url": f"{base_url}/realms/{realm}",
82
- "pk-expiration": sys.maxsize,
80
+ "public-key": None,
83
81
  "pk-lifetime": public_key_lifetime,
82
+ "pk-expiration": 0,
83
+ "recipient-attr": recipient_attribute,
84
84
  "cache": cache
85
85
  }
86
86
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_iam
3
- Version: 0.4.6
3
+ Version: 0.4.8
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=aokRTOfor67K5fXfe3aa7n8JWJePjIOTQjhnFPRCu2Q,24240
4
+ pypomes_iam/iam_services.py,sha256=lNJUwJHGGdcTKtbSzdGH5FeD9yjvXGYjNHApuzyXgxc,11651
5
+ pypomes_iam/jusbr_pomes.py,sha256=hqdyRgg44mppe9B9VpxSM21V0V2kjWTO8pTx6HN0omo,5734
6
+ pypomes_iam/keycloak_pomes.py,sha256=OvPhfUXpqxll-p6CdRq2j5jp5ST9Z0feXg6TVbqC2cY,6751
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.8.dist-info/METADATA,sha256=D6ahNGQwGsDshhmX5csLi03iIz_HRjTh_7UL0090K9g,694
10
+ pypomes_iam-0.4.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ pypomes_iam-0.4.8.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
12
+ pypomes_iam-0.4.8.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=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,,