pypomes-iam 0.1.2__tar.gz → 0.1.3__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_iam
3
- Version: 0.1.2
3
+ Version: 0.1.3
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
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
 
7
7
  [project]
8
8
  name = "pypomes_iam"
9
- version = "0.1.2"
9
+ version = "0.1.3"
10
10
  authors = [
11
11
  { name="GT Nunes", email="wisecoder01@gmail.com" }
12
12
  ]
@@ -91,7 +91,7 @@ def jusbr_setup(flask_app: Flask,
91
91
  _logger = logger
92
92
 
93
93
  # configure the JusBR registry
94
- global _jusbr_registry # noqa: PLW0602
94
+ global _jusbr_registry
95
95
  _jusbr_registry = {
96
96
  "client-id": client_id,
97
97
  "client-secret": client_secret,
@@ -99,7 +99,8 @@ def jusbr_setup(flask_app: Flask,
99
99
  "auth-url": auth_url,
100
100
  "callback-url": callback_url,
101
101
  "key-expiration": int(datetime.now(tz=TZ_LOCAL).timestamp()),
102
- "key-lifetime": public_key_lifetime
102
+ "key-lifetime": public_key_lifetime,
103
+ "users": {}
103
104
  }
104
105
 
105
106
  # establish the endpoints
@@ -142,7 +143,7 @@ def service_login() -> Response:
142
143
  oauth_state: str = "".join(secrets.choice(string.ascii_letters + string.digits) for _ in range(16))
143
144
  user_id: str = input_params.get("user-id") or input_params.get("login") or oauth_state
144
145
  # obtain user data
145
- user_data: dict[str, Any] = __get_user_data(user_id=user_id or oauth_state,
146
+ user_data: dict[str, Any] = __get_user_data(user_id=user_id,
146
147
  logger=_logger)
147
148
  # build redirect url
148
149
  timeout: int = __get_login_timeout()
@@ -92,7 +92,7 @@ def keycloak_setup(flask_app: Flask,
92
92
  :param callback_url: URL for Keycloak to callback on login
93
93
  :param logger: optional logger
94
94
  """
95
- global _keycloak_registry # noqa: PLW0602
95
+ global _keycloak_registry
96
96
 
97
97
  # establish the logger
98
98
  global _logger
@@ -105,7 +105,8 @@ def keycloak_setup(flask_app: Flask,
105
105
  "client-timeout": client_timeout,
106
106
  "realm": realm,
107
107
  "auth-url": auth_url,
108
- "callback-url": callback_url
108
+ "callback-url": callback_url,
109
+ "users": []
109
110
  })
110
111
 
111
112
  # establish the endpoints
File without changes
File without changes
File without changes