huace-aigc-auth-client 1.1.16__tar.gz → 1.1.18__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.
Files changed (17) hide show
  1. {huace_aigc_auth_client-1.1.16/huace_aigc_auth_client.egg-info → huace_aigc_auth_client-1.1.18}/PKG-INFO +5 -5
  2. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/QUICK_START.txt +1 -1
  3. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/README.md +4 -4
  4. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client/__init__.py +1 -1
  5. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client/legacy_adapter.py +1 -1
  6. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client/sdk.py +2 -3
  7. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18/huace_aigc_auth_client.egg-info}/PKG-INFO +5 -5
  8. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/pyproject.toml +1 -1
  9. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/LICENSE +0 -0
  10. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/MANIFEST.in +0 -0
  11. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client/webhook.py +0 -0
  12. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client/webhook_flask.py +0 -0
  13. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client.egg-info/SOURCES.txt +0 -0
  14. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client.egg-info/dependency_links.txt +0 -0
  15. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client.egg-info/requires.txt +0 -0
  16. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/huace_aigc_auth_client.egg-info/top_level.txt +0 -0
  17. {huace_aigc_auth_client-1.1.16 → huace_aigc_auth_client-1.1.18}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: huace-aigc-auth-client
3
- Version: 1.1.16
3
+ Version: 1.1.18
4
4
  Summary: 华策AIGC Auth Client - 提供 Token 验证、用户信息获取、权限检查、旧系统接入等功能
5
5
  Author-email: Huace <support@huace.com>
6
6
  License: MIT
@@ -44,8 +44,8 @@ pip install huace-aigc-auth-client
44
44
  # 必填:应用 ID 和密钥(在鉴权中心创建应用后获取)
45
45
  AIGC_AUTH_APP_ID=your_app_id
46
46
  AIGC_AUTH_APP_SECRET=your_app_secret
47
- # 鉴权服务地址(默认为生产环境)- 测试环境鉴权地址:http://auth.aigc-test.huacemedia.com/aigc-auth/api/v1
48
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
47
+ # 鉴权服务地址(默认为生产环境)
48
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
49
49
  ```
50
50
 
51
51
  如需通过 Nginx 代理:
@@ -74,7 +74,7 @@ client = AigcAuthClient()
74
74
  client = AigcAuthClient(
75
75
  app_id="your_app_id",
76
76
  app_secret="your_app_secret",
77
- base_url="https://aigc-auth.huacemedia.com/aigc-auth/api/v1"
77
+ base_url="your-auth-api-url-prefix"
78
78
  )
79
79
  ```
80
80
 
@@ -352,7 +352,7 @@ except AigcAuthError as e:
352
352
  # .env 文件
353
353
  AIGC_AUTH_APP_ID=your_app_id
354
354
  AIGC_AUTH_APP_SECRET=your_app_secret
355
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
355
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
356
356
 
357
357
  # 同步配置
358
358
  AIGC_AUTH_SYNC_ENABLED=true
@@ -12,7 +12,7 @@ pip install huace-aigc-auth-client
12
12
  # .env 文件
13
13
  AIGC_AUTH_APP_ID=your_app_id
14
14
  AIGC_AUTH_APP_SECRET=your_app_secret
15
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
15
+ AIGC_AUTH_BASE_URL=hyour-auth-url-prefix
16
16
 
17
17
 
18
18
  基本使用
@@ -19,8 +19,8 @@ pip install huace-aigc-auth-client
19
19
  # 必填:应用 ID 和密钥(在鉴权中心创建应用后获取)
20
20
  AIGC_AUTH_APP_ID=your_app_id
21
21
  AIGC_AUTH_APP_SECRET=your_app_secret
22
- # 鉴权服务地址(默认为生产环境)- 测试环境鉴权地址:http://auth.aigc-test.huacemedia.com/aigc-auth/api/v1
23
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
22
+ # 鉴权服务地址(默认为生产环境)
23
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
24
24
  ```
25
25
 
26
26
  如需通过 Nginx 代理:
@@ -49,7 +49,7 @@ client = AigcAuthClient()
49
49
  client = AigcAuthClient(
50
50
  app_id="your_app_id",
51
51
  app_secret="your_app_secret",
52
- base_url="https://aigc-auth.huacemedia.com/aigc-auth/api/v1"
52
+ base_url="your-auth-api-url-prefix"
53
53
  )
54
54
  ```
55
55
 
@@ -327,7 +327,7 @@ except AigcAuthError as e:
327
327
  # .env 文件
328
328
  AIGC_AUTH_APP_ID=your_app_id
329
329
  AIGC_AUTH_APP_SECRET=your_app_secret
330
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
330
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
331
331
 
332
332
  # 同步配置
333
333
  AIGC_AUTH_SYNC_ENABLED=true
@@ -168,4 +168,4 @@ __all__ = [
168
168
  # Logger 设置
169
169
  "setLogger",
170
170
  ]
171
- __version__ = "1.1.16"
171
+ __version__ = "1.1.18"
@@ -246,7 +246,7 @@ class LegacySystemAdapter(ABC):
246
246
  else:
247
247
  auth_data["password"] = password
248
248
 
249
- result = await self.auth_client.sync_user_to_auth(auth_data)
249
+ result = self.auth_client.sync_user_to_auth(auth_data)
250
250
  logger.info(f"Sync result for user {legacy_user.get('username')}: {result}")
251
251
 
252
252
  return result
@@ -95,7 +95,7 @@ class AigcAuthClient:
95
95
  client = AigcAuthClient(
96
96
  app_id="your_app_id",
97
97
  app_secret="your_app_secret",
98
- base_url="https://aigc-auth.huacemedia.com/aigc-auth/api/v1"
98
+ base_url="后端 API 鉴权地址"
99
99
  )
100
100
 
101
101
  # 验证 token
@@ -130,8 +130,7 @@ class AigcAuthClient:
130
130
  self.app_secret = app_secret or os.getenv("AIGC_AUTH_APP_SECRET")
131
131
  self.base_url = (
132
132
  base_url or
133
- os.getenv("AIGC_AUTH_BASE_URL") or
134
- "https://aigc-auth.huacemedia.com/aigc-auth/api/v1"
133
+ os.getenv("AIGC_AUTH_BASE_URL")
135
134
  )
136
135
  self.timeout = timeout
137
136
  self.cache_ttl = cache_ttl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: huace-aigc-auth-client
3
- Version: 1.1.16
3
+ Version: 1.1.18
4
4
  Summary: 华策AIGC Auth Client - 提供 Token 验证、用户信息获取、权限检查、旧系统接入等功能
5
5
  Author-email: Huace <support@huace.com>
6
6
  License: MIT
@@ -44,8 +44,8 @@ pip install huace-aigc-auth-client
44
44
  # 必填:应用 ID 和密钥(在鉴权中心创建应用后获取)
45
45
  AIGC_AUTH_APP_ID=your_app_id
46
46
  AIGC_AUTH_APP_SECRET=your_app_secret
47
- # 鉴权服务地址(默认为生产环境)- 测试环境鉴权地址:http://auth.aigc-test.huacemedia.com/aigc-auth/api/v1
48
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
47
+ # 鉴权服务地址(默认为生产环境)
48
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
49
49
  ```
50
50
 
51
51
  如需通过 Nginx 代理:
@@ -74,7 +74,7 @@ client = AigcAuthClient()
74
74
  client = AigcAuthClient(
75
75
  app_id="your_app_id",
76
76
  app_secret="your_app_secret",
77
- base_url="https://aigc-auth.huacemedia.com/aigc-auth/api/v1"
77
+ base_url="your-auth-api-url-prefix"
78
78
  )
79
79
  ```
80
80
 
@@ -352,7 +352,7 @@ except AigcAuthError as e:
352
352
  # .env 文件
353
353
  AIGC_AUTH_APP_ID=your_app_id
354
354
  AIGC_AUTH_APP_SECRET=your_app_secret
355
- AIGC_AUTH_BASE_URL=https://aigc-auth.huacemedia.com/aigc-auth/api/v1
355
+ AIGC_AUTH_BASE_URL=your-auth-api-url-prefix
356
356
 
357
357
  # 同步配置
358
358
  AIGC_AUTH_SYNC_ENABLED=true
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "huace-aigc-auth-client"
7
- version = "1.1.16"
7
+ version = "1.1.18"
8
8
  description = "华策AIGC Auth Client - 提供 Token 验证、用户信息获取、权限检查、旧系统接入等功能"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"