skyplatform-iam 1.2.1__tar.gz → 1.2.2__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.
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/PKG-INFO +1 -1
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/pyproject.toml +1 -1
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/skyplatform_iam/__init__.py +1 -1
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/skyplatform_iam/connect_agenterra_iam.py +5 -0
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/README.md +0 -0
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/skyplatform_iam/config.py +0 -0
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/skyplatform_iam/exceptions.py +0 -0
- {skyplatform_iam-1.2.1 → skyplatform_iam-1.2.2}/skyplatform_iam/middleware.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skyplatform-iam
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
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/
|
|
@@ -708,6 +708,11 @@ class ConnectAgenterraIam(object):
|
|
|
708
708
|
|
|
709
709
|
if response.status_code == 200:
|
|
710
710
|
self.logger.info(f"[{method_name}] 令牌刷新成功")
|
|
711
|
+
data = response.json()["data"]
|
|
712
|
+
access_token = data["access_token"]
|
|
713
|
+
payload = decode_jwt_token(access_token)
|
|
714
|
+
self.machine_token = payload["machine_access_token"]
|
|
715
|
+
|
|
711
716
|
return response
|
|
712
717
|
else:
|
|
713
718
|
self.logger.warning(f"[{method_name}] 令牌刷新失败 - 状态码: {response.status_code}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|