zipher-sdk 0.4.2__tar.gz → 0.4.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.
- {zipher-sdk-0.4.2/zipher_sdk.egg-info → zipher-sdk-0.4.3}/PKG-INFO +1 -1
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/setup.py +1 -1
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/tests/test_acl/test_acl.py +1 -1
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/acl/zipher_installer.py +13 -3
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/cli.py +1 -1
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3/zipher_sdk.egg-info}/PKG-INFO +1 -1
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/LICENSE +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/README.md +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/setup.cfg +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/tests/__init__.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/tests/test_acl/__init__.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/tests/test_acl/sample_job.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/tests/test_client.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/__init__.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/acl/__init__.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/acl/models.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/client.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/exceptions.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/models.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher/utils.py +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher_sdk.egg-info/SOURCES.txt +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher_sdk.egg-info/dependency_links.txt +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher_sdk.egg-info/entry_points.txt +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher_sdk.egg-info/requires.txt +0 -0
- {zipher-sdk-0.4.2 → zipher-sdk-0.4.3}/zipher_sdk.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ with open('README.md', encoding='utf-8') as f:
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='zipher-sdk',
|
|
11
|
-
version='0.4.
|
|
11
|
+
version='0.4.3',
|
|
12
12
|
description='Python SDK for programmatic access to the Zipher API',
|
|
13
13
|
long_description=long_description,
|
|
14
14
|
long_description_content_type='text/markdown',
|
|
@@ -387,7 +387,7 @@ class TestExistingServicePrincipal(TestCase):
|
|
|
387
387
|
|
|
388
388
|
user_config = InstallerUserConfig(
|
|
389
389
|
jobs_list=[],
|
|
390
|
-
existing_service_principal_id=self.sp.
|
|
390
|
+
existing_service_principal_id=self.sp.application_id
|
|
391
391
|
)
|
|
392
392
|
zipher_creds = installer.setup(user_config=user_config, skip_approval=True)
|
|
393
393
|
|
|
@@ -220,9 +220,19 @@ class ZipherInstaller:
|
|
|
220
220
|
return service_principal
|
|
221
221
|
|
|
222
222
|
def _use_existing_service_principal(self, sp_id: str, zipher_group: Group) -> ServicePrincipal:
|
|
223
|
-
"""Use an existing service principal and add it to the zipher group with token permissions.
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
"""Use an existing service principal and add it to the zipher group with token permissions.
|
|
224
|
+
|
|
225
|
+
Args:
|
|
226
|
+
sp_id: Application ID (UUID) of the service principal
|
|
227
|
+
"""
|
|
228
|
+
# Search by application_id (UUID)
|
|
229
|
+
all_sps = list(self.dbx_client.service_principals.list())
|
|
230
|
+
matching_sp = [sp for sp in all_sps if sp.application_id == sp_id]
|
|
231
|
+
if not matching_sp:
|
|
232
|
+
raise ValueError(f"Service principal with application_id '{sp_id}' not found")
|
|
233
|
+
sp = matching_sp[0]
|
|
234
|
+
|
|
235
|
+
print(f"\nUsing existing service principal: {sp.display_name} (id={sp.id}, application_id={sp.application_id})")
|
|
226
236
|
|
|
227
237
|
# Add existing SP to the zipher group (same as in _create_service_principal)
|
|
228
238
|
existing_groups = [g.value for g in sp.groups] if sp.groups else []
|
|
@@ -110,7 +110,7 @@ def main():
|
|
|
110
110
|
"--existing-sp-id",
|
|
111
111
|
type=str,
|
|
112
112
|
default=None,
|
|
113
|
-
help="Use existing service principal by ID instead of creating a new one."
|
|
113
|
+
help="Use existing service principal by Application ID (UUID) instead of creating a new one."
|
|
114
114
|
)
|
|
115
115
|
|
|
116
116
|
remove_parser = subparsers.add_parser("remove", help="Remove Zipher resources from the workspace.", parents=[parent_parser])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|