sumo-wrapper-python 1.0.28__py3-none-any.whl → 1.0.29__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.
- sumo/wrapper/_auth_provider.py +11 -11
- sumo/wrapper/_version.py +2 -2
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/METADATA +1 -1
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/RECORD +8 -8
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/WHEEL +0 -0
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/entry_points.txt +0 -0
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/licenses/LICENSE +0 -0
- {sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/top_level.txt +0 -0
sumo/wrapper/_auth_provider.py
CHANGED
|
@@ -432,6 +432,17 @@ def get_auth_provider(
|
|
|
432
432
|
devicecode=False,
|
|
433
433
|
case_uuid=None,
|
|
434
434
|
) -> AuthProvider:
|
|
435
|
+
if all(
|
|
436
|
+
os.getenv(x)
|
|
437
|
+
for x in [
|
|
438
|
+
"AZURE_FEDERATED_TOKEN_FILE",
|
|
439
|
+
"AZURE_TENANT_ID",
|
|
440
|
+
"AZURE_CLIENT_ID",
|
|
441
|
+
"AZURE_AUTHORITY_HOST",
|
|
442
|
+
]
|
|
443
|
+
):
|
|
444
|
+
return AuthProviderManaged(resource_id)
|
|
445
|
+
# ELSE
|
|
435
446
|
if refresh_token:
|
|
436
447
|
return AuthProviderRefreshToken(
|
|
437
448
|
refresh_token, client_id, authority, resource_id
|
|
@@ -473,17 +484,6 @@ def get_auth_provider(
|
|
|
473
484
|
# under Equinor compliant device policy
|
|
474
485
|
return AuthProviderDeviceCode(client_id, authority, resource_id)
|
|
475
486
|
# ELSE
|
|
476
|
-
if all(
|
|
477
|
-
os.getenv(x)
|
|
478
|
-
for x in [
|
|
479
|
-
"AZURE_FEDERATED_TOKEN_FILE",
|
|
480
|
-
"AZURE_TENANT_ID",
|
|
481
|
-
"AZURE_CLIENT_ID",
|
|
482
|
-
"AZURE_AUTHORITY_HOST",
|
|
483
|
-
]
|
|
484
|
-
):
|
|
485
|
-
return AuthProviderManaged(resource_id)
|
|
486
|
-
# ELSE
|
|
487
487
|
return AuthProviderNone(resource_id)
|
|
488
488
|
|
|
489
489
|
|
sumo/wrapper/_version.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
sumo/__init__.py,sha256=ftS-xRPSH-vU7fIHlnZQaCTWbNvs4owJivNW65kzsIM,85
|
|
2
2
|
sumo/wrapper/__init__.py,sha256=JK6iMAy2Fdrc7iaIHTn60fHPdRvsgNjZwWD6DJtGUYQ,235
|
|
3
|
-
sumo/wrapper/_auth_provider.py,sha256=
|
|
3
|
+
sumo/wrapper/_auth_provider.py,sha256=fpaYyGKwYUJ6cljMCZDVfjlgiA-YYNN_nrrd-TefRp8,16472
|
|
4
4
|
sumo/wrapper/_blob_client.py,sha256=SyfyFZ1hHVWKU4lmgUqSjl5TaK_OJNQ__0wDETrp-ag,1623
|
|
5
5
|
sumo/wrapper/_decorators.py,sha256=3IEi6GXVkkDACHoo8dOeDoBtZh5TlJ6Tw0qlpOVHqLQ,806
|
|
6
6
|
sumo/wrapper/_logging.py,sha256=WAGrjPmK2_JC9w1IxT5onq1iEAreEsyzmm95pXBe0dA,1074
|
|
7
7
|
sumo/wrapper/_retry_strategy.py,sha256=JSXy-ki5vWI_N4D52LpK9EoAmPrnT3H6OG0aBLsJRMk,2525
|
|
8
|
-
sumo/wrapper/_version.py,sha256=
|
|
8
|
+
sumo/wrapper/_version.py,sha256=NVlnKecZc64AsAiqaTBWgJKWWUmVWgP2Wg1tHpSMtHQ,513
|
|
9
9
|
sumo/wrapper/config.py,sha256=6t7qqjrrmd11m4VMlRryiMYw2JDU_R51305woAP1TAs,865
|
|
10
10
|
sumo/wrapper/login.py,sha256=Bp5IgSrsgjWcgOQIQIQ5aJrCBWdK3khS-CnTmB63Rjk,1951
|
|
11
11
|
sumo/wrapper/sumo_client.py,sha256=hhOQLUkIGE8VbvtdHM90izFJUPTD_XYDJMr6FTC9-9w,21101
|
|
12
|
-
sumo_wrapper_python-1.0.
|
|
13
|
-
sumo_wrapper_python-1.0.
|
|
14
|
-
sumo_wrapper_python-1.0.
|
|
15
|
-
sumo_wrapper_python-1.0.
|
|
16
|
-
sumo_wrapper_python-1.0.
|
|
17
|
-
sumo_wrapper_python-1.0.
|
|
12
|
+
sumo_wrapper_python-1.0.29.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
+
sumo_wrapper_python-1.0.29.dist-info/METADATA,sha256=MXK7eIYDj8vR38AgVY4kiK5kjRhQe_8yaxarNKZ2pFQ,14615
|
|
14
|
+
sumo_wrapper_python-1.0.29.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
15
|
+
sumo_wrapper_python-1.0.29.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
|
|
16
|
+
sumo_wrapper_python-1.0.29.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
|
|
17
|
+
sumo_wrapper_python-1.0.29.dist-info/RECORD,,
|
|
File without changes
|
{sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{sumo_wrapper_python-1.0.28.dist-info → sumo_wrapper_python-1.0.29.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|