Skip to content

Commit 2582b01

Browse files
committed
fix: Check for, and use, non-case-specific shared-key token.
1 parent 6475110 commit 2582b01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sumo/wrapper/_auth_provider.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ def get_auth_provider(
443443
if os.path.exists(get_token_path(resource_id, ".sharedkey", case_uuid)):
444444
return AuthProviderSumoToken(resource_id, case_uuid)
445445
# ELSE
446+
if os.path.exists(get_token_path(resource_id, ".sharedkey")):
447+
return AuthProviderSumoToken(resource_id)
448+
# ELSE
446449
if os.path.exists(get_token_path(resource_id, ".token")):
447450
auth_silent = AuthProviderSilent(client_id, authority, resource_id)
448451
token = auth_silent.get_token()

0 commit comments

Comments
 (0)