skyplatform-iam 1.2.2__tar.gz → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: skyplatform-iam
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: SkyPlatform IAM认证SDK,提供FastAPI中间件和认证路由
5
5
  Project-URL: Homepage, https://github.com/xinmayoujiang12621/agenterra_iam
6
6
  Project-URL: Documentation, https://skyplatform-iam.readthedocs.io/
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "skyplatform-iam"
7
- version = "1.2.2"
7
+ version = "1.2.3"
8
8
  authors = [
9
9
  { name="x9", email="xuanxienanxunmobao@gmail.com" },
10
10
  ]
@@ -17,7 +17,7 @@ from .exceptions import (
17
17
  NetworkError
18
18
  )
19
19
 
20
- __version__ = "1.2.2"
20
+ __version__ = "1.2.3"
21
21
  __author__ = "x9"
22
22
  __description__ = "SkyPlatform IAM认证SDK,提供FastAPI中间件和IAM服务连接功能"
23
23
 
@@ -838,12 +838,13 @@ class ConnectAgenterraIam(object):
838
838
  "access_key": self.access_key,
839
839
  "machine_token": self.machine_token,
840
840
  "user_id": user_id,
841
- "config_name": config_name
841
+ "config_name": config_name,
842
+ "config_value": config_value
842
843
  }
843
844
 
844
845
  # 添加可选参数
845
- if config_value is not None:
846
- body["config_value"] = config_value
846
+ # if config_value is not None:
847
+ # body["config_value"] = config_value
847
848
 
848
849
  uri = "/api/v2/service/add_custom_config"
849
850
  url = self.agenterra_iam_host + uri
@@ -338,9 +338,6 @@ class AuthService:
338
338
  all_credentials = credentials_list
339
339
  total_credentials = len(credentials_list)
340
340
 
341
- if not username:
342
- return None
343
-
344
341
  # 构建用户信息字典
345
342
  user_info = {
346
343
  "id": iam_user_id,