kobai-sdk 0.2.8rc7__tar.gz → 0.2.8rc8__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 kobai-sdk might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kobai-sdk
3
- Version: 0.2.8rc7
3
+ Version: 0.2.8rc8
4
4
  Summary: A package that enables interaction with a Kobai tenant.
5
5
  Author-email: Ryan Oattes <ryan@kobai.io>
6
6
  License: Apache License
@@ -64,7 +64,7 @@ class TenantClient:
64
64
  # MS Entra Auth
65
65
  ########################################
66
66
 
67
- def authenticate(self, client_id: str, tenant_id: str, run_ai_init: bool = True):
67
+ def authenticate(self, client_id: str, tenant_id: str, run_ai_init: bool = True, override_username: str = None):
68
68
 
69
69
  """
70
70
  Authenticate the TenantClient with the Kobai instance. Returns nothing, but stores bearer token in client.
@@ -84,6 +84,9 @@ class TenantClient:
84
84
  oauth_token = access.serialize()
85
85
  user_name = json.loads(access.serialize())["username"]
86
86
 
87
+ if override_username is not None:
88
+ user_name = override_username
89
+
87
90
  user_name_query_params={ 'userName' : user_name}
88
91
  tenants_response = self.api_client._TenantAPI__run_get('/user-mgmt-svcs/auth/tenants?'+urllib.parse.urlencode(user_name_query_params))
89
92
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kobai-sdk
3
- Version: 0.2.8rc7
3
+ Version: 0.2.8rc8
4
4
  Summary: A package that enables interaction with a Kobai tenant.
5
5
  Author-email: Ryan Oattes <ryan@kobai.io>
6
6
  License: Apache License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kobai-sdk"
7
- version = "0.2.8rc7"
7
+ version = "0.2.8rc8"
8
8
  description = "A package that enables interaction with a Kobai tenant."
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Ryan Oattes", email = "ryan@kobai.io" }]
File without changes
File without changes
File without changes
File without changes