infisicalsdk 0.1.3__py3-none-any.whl → 0.2.0__py3-none-any.whl

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 infisicalsdk might be problematic. Click here for more details.

infisical_sdk/client.py CHANGED
@@ -82,7 +82,7 @@ class AWSAuth:
82
82
  def __init__(self, client: InfisicalSDKClient) -> None:
83
83
  self.client = client
84
84
 
85
- def login(self, identity_id: str = "") -> ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPost200Response:
85
+ def login(self, identity_id: str) -> ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPost200Response:
86
86
  """
87
87
  Login with AWS Authentication.
88
88
 
@@ -102,7 +102,7 @@ class AWSAuth:
102
102
 
103
103
  credentials = self._get_aws_credentials(session)
104
104
 
105
- iam_request_url = "https://sts.amazonaws.com/"
105
+ iam_request_url = f"https://sts.{aws_region}.amazonaws.com/"
106
106
  iam_request_body = "Action=GetCallerIdentity&Version=2011-06-15"
107
107
  request_headers = self._prepare_aws_request(iam_request_url, iam_request_body, credentials, aws_region)
108
108
 
@@ -133,7 +133,7 @@ class AWSAuth:
133
133
 
134
134
  request = AWSRequest(method="POST", url=url, data=body)
135
135
  request.headers["X-Amz-Date"] = amz_date
136
- request.headers["Host"] = "sts.amazonaws.com"
136
+ request.headers["Host"] = f"sts.{region}.amazonaws.com"
137
137
  request.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=utf-8"
138
138
  request.headers["Content-Length"] = str(len(body))
139
139
 
@@ -177,8 +177,8 @@ class AWSAuth:
177
177
  class Auth:
178
178
  def __init__(self, client):
179
179
  self.client = client
180
- self.awsAuth = AWSAuth(client)
181
- self.universalAuth = UniversalAuth(client)
180
+ self.aws_auth = AWSAuth(client)
181
+ self.universal_auth = UniversalAuth(client)
182
182
 
183
183
  class V3RawSecrets:
184
184
  def __init__(self, client: InfisicalSDKClient) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: infisicalsdk
3
- Version: 0.1.3
3
+ Version: 0.2.0
4
4
  Summary: Infisical API Client
5
5
  Home-page: https://github.com/Infisical/python-sdk-official
6
6
  Author: Infisical
@@ -1,6 +1,6 @@
1
1
  infisical_sdk/__init__.py,sha256=FwYw2hQ3IbDwST-nDpIUn6vSe6j-3PIe0D6XjWo1ncM,38
2
2
  infisical_sdk/aws_auth.py,sha256=v8o8IlHtPHnUSFZ0sOKw2aegjpHTwzbimNOp0jRJ_SE,4734
3
- infisical_sdk/client.py,sha256=Pu7JHONdq87QR4lXF7TNR-jinUwhnQq7M8bQ6tEanmU,11169
3
+ infisical_sdk/client.py,sha256=-WFLsaAFOVf6AbfdvC1zK6ZafgAfQe5VMS8ypF8lSWw,11190
4
4
  infisical_sdk/universal_auth.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  infisicalapi_client/__init__.py,sha256=rWGv_EgnSogCMVztwivh29Y3TsE-H0jaYg-9A5bRJlw,96047
6
6
  infisicalapi_client/api_client.py,sha256=T7YYJUynpr7IJtUWBlQJZZZd391LJUREZA7zJ1v4VKc,29498
@@ -660,7 +660,7 @@ infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response.
660
660
  infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response_secrets_inner.py,sha256=W3UlWiMjUgvgsvQQwWhy3lI2_kNyvfioMAeUeLzeihw,7895
661
661
  infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request.py,sha256=GbbbmR79KRUujN4TTV80Xolw7p_--vUIwUEdfIzqaUM,2938
662
662
  infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner.py,sha256=CLDU-V_riR072kckI6Cceyf8bPGvBBOFQ8GPcd1zJwk,2423
663
- infisicalsdk-0.1.3.dist-info/METADATA,sha256=6-v1u7Nt_drqIzuILTX8-7ngCPkAonMVvhIN1FbOw04,628
664
- infisicalsdk-0.1.3.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
665
- infisicalsdk-0.1.3.dist-info/top_level.txt,sha256=SEh0Sx0NSwoLuwnmT4TnNjmV0uLhsPl7_P-cDDuNytY,34
666
- infisicalsdk-0.1.3.dist-info/RECORD,,
663
+ infisicalsdk-0.2.0.dist-info/METADATA,sha256=JbRrfJR8OXEU_7IaGn8W2Cs4jP5OhKiJNHIWfltubew,628
664
+ infisicalsdk-0.2.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
665
+ infisicalsdk-0.2.0.dist-info/top_level.txt,sha256=SEh0Sx0NSwoLuwnmT4TnNjmV0uLhsPl7_P-cDDuNytY,34
666
+ infisicalsdk-0.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5