sumo-wrapper-python 1.0.27__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 +14 -11
- sumo/wrapper/_version.py +2 -2
- sumo/wrapper/sumo_client.py +1 -1
- {sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/METADATA +1 -1
- {sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/RECORD +9 -9
- {sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/WHEEL +0 -0
- {sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/entry_points.txt +0 -0
- {sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/licenses/LICENSE +0 -0
- {sumo_wrapper_python-1.0.27.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
|
|
@@ -443,6 +454,9 @@ def get_auth_provider(
|
|
|
443
454
|
if os.path.exists(get_token_path(resource_id, ".sharedkey", case_uuid)):
|
|
444
455
|
return AuthProviderSumoToken(resource_id, case_uuid)
|
|
445
456
|
# ELSE
|
|
457
|
+
if os.path.exists(get_token_path(resource_id, ".sharedkey")):
|
|
458
|
+
return AuthProviderSumoToken(resource_id)
|
|
459
|
+
# ELSE
|
|
446
460
|
if os.path.exists(get_token_path(resource_id, ".token")):
|
|
447
461
|
auth_silent = AuthProviderSilent(client_id, authority, resource_id)
|
|
448
462
|
token = auth_silent.get_token()
|
|
@@ -470,17 +484,6 @@ def get_auth_provider(
|
|
|
470
484
|
# under Equinor compliant device policy
|
|
471
485
|
return AuthProviderDeviceCode(client_id, authority, resource_id)
|
|
472
486
|
# ELSE
|
|
473
|
-
if all(
|
|
474
|
-
os.getenv(x)
|
|
475
|
-
for x in [
|
|
476
|
-
"AZURE_FEDERATED_TOKEN_FILE",
|
|
477
|
-
"AZURE_TENANT_ID",
|
|
478
|
-
"AZURE_CLIENT_ID",
|
|
479
|
-
"AZURE_AUTHORITY_HOST",
|
|
480
|
-
]
|
|
481
|
-
):
|
|
482
|
-
return AuthProviderManaged(resource_id)
|
|
483
|
-
# ELSE
|
|
484
487
|
return AuthProviderNone(resource_id)
|
|
485
488
|
|
|
486
489
|
|
sumo/wrapper/_version.py
CHANGED
sumo/wrapper/sumo_client.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
|
-
sumo/wrapper/sumo_client.py,sha256=
|
|
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.
|
|
11
|
+
sumo/wrapper/sumo_client.py,sha256=hhOQLUkIGE8VbvtdHM90izFJUPTD_XYDJMr6FTC9-9w,21101
|
|
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.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{sumo_wrapper_python-1.0.27.dist-info → sumo_wrapper_python-1.0.29.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|