pypomes-iam 0.2.6__tar.gz → 0.2.7__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.2.6
3
+ Version: 0.2.7
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.2.6"
9
+ version = "0.2.7"
10
10
  authors = [
11
11
  { name="GT Nunes", email="wisecoder01@gmail.com" }
12
12
  ]
@@ -167,7 +167,8 @@ def _service_callback(registry: dict[str, Any],
167
167
  logger=logger)
168
168
  if not errors:
169
169
  token_user: str = token_claims["payload"].get("preferred_username")
170
- if token_user == oauth_state:
170
+ login_id = user_data.pop("login-id", None)
171
+ if not login_id or (login_id == token_user):
171
172
  users[token_user] = user_data
172
173
  result = (token_user, token)
173
174
  else:
@@ -175,6 +176,9 @@ def _service_callback(registry: dict[str, Any],
175
176
  else:
176
177
  errors.append("Unknown state received")
177
178
 
179
+ if errors and logger:
180
+ logger.error(msg="; ".join(errors))
181
+
178
182
  return result
179
183
 
180
184
 
File without changes
File without changes
File without changes