poelis-sdk 0.1.3__py3-none-any.whl → 0.1.4__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 poelis-sdk might be problematic. Click here for more details.
- poelis_sdk/auth0.py +8 -6
- {poelis_sdk-0.1.3.dist-info → poelis_sdk-0.1.4.dist-info}/METADATA +1 -1
- {poelis_sdk-0.1.3.dist-info → poelis_sdk-0.1.4.dist-info}/RECORD +5 -5
- {poelis_sdk-0.1.3.dist-info → poelis_sdk-0.1.4.dist-info}/WHEEL +0 -0
- {poelis_sdk-0.1.3.dist-info → poelis_sdk-0.1.4.dist-info}/licenses/LICENSE +0 -0
poelis_sdk/auth0.py
CHANGED
|
@@ -32,17 +32,19 @@ class Auth0TokenManager:
|
|
|
32
32
|
self.base_url = base_url
|
|
33
33
|
|
|
34
34
|
# Extract Auth0 domain from API key format
|
|
35
|
-
# Format: poelis_live_org_dev_<client_id>
|
|
35
|
+
# Format: poelis_live_org_dev_<client_id>
|
|
36
36
|
parts = api_key.split('_')
|
|
37
|
-
if len(parts) >= 4 and parts[0] == 'poelis' and parts[1] == 'live':
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if len(parts) >= 4 and parts[0] == 'poelis' and parts[1] == 'live' and parts[2] == 'org' and parts[3] == 'dev':
|
|
38
|
+
# For now, use the Machine to Machine application credentials
|
|
39
|
+
# TODO: Parse client_id from API key when webapp generates proper format
|
|
40
|
+
self.client_id = "XcSLURURuQNEVvX2PF5DplNhTY6YCT4C" # Machine to Machine app
|
|
41
|
+
self.client_secret = "TM_Fv8FsfAaqvODf7ayyE_LrZM2KbbpdtLIIMqkIZwFXfKYLdOFcO2qmyO0v970-"
|
|
40
42
|
else:
|
|
41
|
-
raise ValueError("Invalid API key format. Expected: poelis_live_org_dev_<client_id>
|
|
43
|
+
raise ValueError("Invalid API key format. Expected: poelis_live_org_dev_<client_id>")
|
|
42
44
|
|
|
43
45
|
# Derive Auth0 domain and audience
|
|
44
46
|
self.auth0_domain = "poelis-prod.eu.auth0.com"
|
|
45
|
-
self.audience =
|
|
47
|
+
self.audience = "poelis-auth-api" # Use the API identifier, not the GCP URL
|
|
46
48
|
|
|
47
49
|
self._token: Optional[str] = None
|
|
48
50
|
self._expires_at: float = 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
poelis_sdk/__init__.py,sha256=QzPuy0lsmF0JEOrcnHDWsUfR_WCO1XpegwrYpSGyUVI,738
|
|
2
2
|
poelis_sdk/_transport.py,sha256=F5EX0EJFHJPAE638nKzlX5zLSU6FIMzMemqgh05_V6U,6061
|
|
3
|
-
poelis_sdk/auth0.py,sha256=
|
|
3
|
+
poelis_sdk/auth0.py,sha256=VDZHCv9YpsW55H-PLINKMq74UhevP6OWyBHQyEFIpvw,3163
|
|
4
4
|
poelis_sdk/browser.py,sha256=zyMoNqFCvKZDV4ZSFVk2N1-HHiq80gzmkGN3uRo1CuM,12409
|
|
5
5
|
poelis_sdk/client.py,sha256=Sr05go8eNpEXswWAhomQuSakE5Oai_kUsGDwHgPnnLY,3731
|
|
6
6
|
poelis_sdk/exceptions.py,sha256=qX5kpAr8ozJUOW-CNhmspWVIE-bvUZT_PUnimYuBxNY,1101
|
|
@@ -12,7 +12,7 @@ poelis_sdk/workspaces.py,sha256=LNVt73nqdssNx42_YB_V5Qp35kEdFn9rNBYmEjpM7vk,1518
|
|
|
12
12
|
poelis_sdk/.github/workflows/sdk-ci.yml,sha256=hWO-igHeTAsxEJGCueteEQnAEi00GWXJJPa8DWgqhHM,750
|
|
13
13
|
poelis_sdk/.github/workflows/sdk-docs.yml,sha256=bS1uUxOKRMA6TWrmzzJHTokyP0Nt0aJwojcLAgLoEhs,1166
|
|
14
14
|
poelis_sdk/.github/workflows/sdk-publish-testpypi.yml,sha256=FBZcfDrtUijs6rcC8WeIimi9SfgoB8Xm5pTNtcztT44,776
|
|
15
|
-
poelis_sdk-0.1.
|
|
16
|
-
poelis_sdk-0.1.
|
|
17
|
-
poelis_sdk-0.1.
|
|
18
|
-
poelis_sdk-0.1.
|
|
15
|
+
poelis_sdk-0.1.4.dist-info/METADATA,sha256=5vzMFlh7cIRQggWa8fRyoC1ao9V-JsP-C2_XgrFx2uM,3280
|
|
16
|
+
poelis_sdk-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
17
|
+
poelis_sdk-0.1.4.dist-info/licenses/LICENSE,sha256=EEmE_r8wk_pdXB8CWp1LG6sBOl7--hNSS2kV94cI6co,1075
|
|
18
|
+
poelis_sdk-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|