iaptoolkit 0.3.9__tar.gz → 0.3.11__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.
@@ -1,7 +1,8 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: iaptoolkit
3
- Version: 0.3.9
3
+ Version: 0.3.11
4
4
  Summary: Library of common utils for interacting with Identity-Aware Proxies
5
+ License-File: LICENSE
5
6
  Author: Rob Voigt
6
7
  Author-email: code@ravoigt.com
7
8
  Requires-Python: >=3.11,<4.0
@@ -9,8 +10,9 @@ Classifier: Programming Language :: Python :: 3
9
10
  Classifier: Programming Language :: Python :: 3.11
10
11
  Classifier: Programming Language :: Python :: 3.12
11
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
12
14
  Requires-Dist: google-auth (>=2.29.0,<3.0.0)
13
- Requires-Dist: kvcommon[k8s] (>=0.4.1,<0.5.0)
15
+ Requires-Dist: kvcommon[k8s] (>=0.4.8,<0.5.0)
14
16
  Requires-Dist: requests (>=2.32.4)
15
17
  Requires-Dist: toml (>=0.10.2,<0.11.0)
16
18
  Project-URL: Homepage, https://github.com/RAVoigt/iaptoolkit
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "iaptoolkit"
3
- version = "0.3.9"
3
+ version = "0.3.11"
4
4
  description = "Library of common utils for interacting with Identity-Aware Proxies"
5
5
  authors = ["Rob Voigt <code@ravoigt.com>"]
6
6
  readme = "README.md"
@@ -25,7 +25,7 @@ python = "^3.11"
25
25
  google-auth = "^2.29.0"
26
26
  requests = ">=2.32.4"
27
27
  toml = "^0.10.2"
28
- kvcommon = {extras = ["k8s"], version = "^0.4.1"}
28
+ kvcommon = {extras = ["k8s"], version = "^0.4.8"}
29
29
 
30
30
  [tool.poetry.group.dev.dependencies]
31
31
  black = "*"
@@ -42,7 +42,7 @@ class IAPToolkit:
42
42
  iap_client_id=self._GOOGLE_IAP_CLIENT_ID, bypass_cached=bypass_cached,
43
43
  )
44
44
  except ServiceAccountTokenException as ex:
45
- LOG.debug(ex)
45
+ LOG.error(ex)
46
46
  raise
47
47
 
48
48
  def get_token_oidc_str(self, bypass_cached: bool = False) -> str:
@@ -47,7 +47,7 @@ class ServiceAccount(object):
47
47
  or not token_dict.get("id_token", None)
48
48
  or not token_dict.get("token_expiry", None)
49
49
  ):
50
- LOG.debug("No stored service account token for current iap_client_id")
50
+ # LOG.debug("No stored service account token for current iap_client_id")
51
51
  return
52
52
 
53
53
  id_token_from_dict: str = token_dict.get("id_token", "")
@@ -57,7 +57,7 @@ class ServiceAccount(object):
57
57
  try:
58
58
  token_expiry = datetime.datetime.fromisoformat(token_expiry_from_dict)
59
59
  except (ValueError, TypeError) as ex:
60
- LOG.debug(
60
+ LOG.warning(
61
61
  "Invalid token expiry for stored token - Could not parse from ISO format to datetime."
62
62
  )
63
63
  return
@@ -36,7 +36,7 @@ class TokenDatastore(VersionedDatastore):
36
36
  tokens_dict = self.get_or_create_nested_dict(self._service_account_tokens_key)
37
37
  token_struct_dict = tokens_dict.get(iap_client_id, None)
38
38
  if not token_struct_dict:
39
- LOG.debug("No stored service account token for current iap_client_id")
39
+ # LOG.debug("No stored service account token for current iap_client_id")
40
40
  return
41
41
  return token_struct_dict
42
42
 
File without changes
File without changes